is now part of CreativePro.com!

GREP of the Month: Email Addresses

5

How to automatically format email addresses when applying a paragraph style.


This article appeared in Issue 70 of InDesign Magazine.

InDesign helps you format email addresses when you use the Convert URLs to Hyperlinks command (in the Hyperlinks panel menu). But you have to run this command manually and repeat the process every time you’re handed new text. Instead, why not automate this process using GREP styles?

. . . .

This article is for members only. To continue reading, please sign in, or sign up for a membership today. Thanks for supporting CreativePro!

BECOME A MEMBER

CreativePro membership keeps you up-to-date with the technology, solutions, and resources to strengthen your professional development.

For just $6.50/month (billed annually), you’ll get access to valuable benefits, including:

  • 12 monthly issues of CreativePro Magazine, filled with practical, real-world tutorials written by experts
  • Downloadable resources including templates, fonts, scripts, design assets, cheat sheets, and more
  • Hundreds of members-only tutorial and tip articles
  • Top Tips for InDesign, Photoshop, and Illustrator ebook collection
  • Discounts on events and books
  • and more...

Sign up now!


Bart Van de Wiele is a LinkedIn Learning author and public speaker currently working as a Principal Solutions Consultant at Adobe. Visit his website at bartvdw.com.
  • Dhafir Photo says:

    To avoid anything outside the address you can use
    and this is will better:

  • Jill Orr says:

    Did not work for me.

  • Rocky Berlier says:

    Didn’t work for me either. Instead I used:

    .+@.+..+

    and it worked perfectly for email addresses with letters, punctuation, and numbers before or after the “@” sign. Neither my GREP Find nor the GREP styles dialog recognized the “S” or “s” characters as anything.

    • Mike Rankin says:

      Looks like the site ate some of Bart’s code, specifically backslashes. Fixed now. Try it again and sorry for the hassle.

  • Dhafir Photo says:

    No need to use wS+ because S includes w

  • >