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?

#53907
Casey
Participant

@ Tournier —

I forgot all about the negative metacharacters. It's not really well documented but that covers off anything that isn't a white space character (which might be overkill, but meh).

@Jongware —

All those extra long URLs must have been truncated when I pasted the example text in there. That wasn't the intention… hehe

It's not THAT important to find the shortest pattern, just a little experiment. A couple new variations that I've come up with. Instead of word boundary I used beginning and end of word metacharacters, which automatically exclude any punctuation, periods, ellipsis (plural?), commas, etc. The one problem I run into wiith any pattern I've tried is when an acronym appears, like m.d.

————

URLs or all addresses — <S+.S+>/?

email addresses — <S+@S+>

———–

This article was last modified on November 23, 2009

Comments (0)

Loading comments...