Reply To: Shortest GREP Pattern to address URLs and e-mail addresses?

Home Page / Forums / General InDesign Topics (CLOSED) / Shortest GREP Pattern to address URLs and e-mail addresses? / Reply To: Shortest GREP Pattern to address URLs and e-mail addresses?

#53885

Hello everybody

This is a very interesting topic. Like Casey D, I would like to find the best and shortest regex for e-mail (and web) adresses.

I tried [w:/]+[.@]+[w%-/]+ and it is good, but there is two problems (cf web_00.png)

I tried this : b[S/]+@?S+.S+b The result is not perfect (doesn't find last / at the end of URLs) (cf. web_01.png)

But both are a problem : w finds also accented characters as S, and I think an e-mail adress is a string of ASCII characters.

Laurent

This article was last modified on November 21, 2009

Comments (0)

Loading comments...