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?

#50792
Anonymous
Inactive

you could do \S+\.\w\w\S+

or something like that couldn't you? this will find a string of [non space] characters, then a period, then 2 word characters, then a string of [non space] characters. I can't think of a website or email that wouldn't follow this format. 

the only problem is that this query would find use any regular sentence that you ended and forgot to put a space after the period but forgot to put a space before typing the next paragraph.sure it'll also include characters that can't be placed in a url or email addy, but no regular sentence should have the a format that would equal the expression i described. please correct me if i'm wrong, i'm still learning too, and would  love to learn more about GREP

This article was last modified on November 21, 2009

Comments (0)

Loading comments...