Change email address to lower case
- This topic has 1 reply, 2 voices, and was last updated 6 years, 9 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Change email address to lower case
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Change email address to lower case
Tagged: GREP, InDesign, productivity
Hi all
I know this is a quick one, but I just can’t quite work it out correclty. I’ve got a 40 page doc (each page is a business card) and we’ve changed the format from TitleCase to lowercase
How do I search for:
Every character that appears before ‘@’ and change it to lower case. For example:
to
Thanks!
Tabrez
Try this one:
(function () {
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = '[\\S]+?(?=@)';
var found = app.documents[0].findGrep();
for (var i = found.length-1; i >= 0; i--) {
found[i].changecase (ChangecaseMode.LOWERCASE);
}
}());
Peter
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!