Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Change email address to lower case

Return to Member Forum

  • Author
    Posts
    • #96193
      Tabrez Ahmad
      Member

      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:

      EmailAddress@company.com

      to

      emailaddress@company.com

      Thanks!

      Tabrez

    • #96427
      Peter Kahrel
      Participant

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Forum Ads