Posted by anthony on 03/30/07 09:00
scripts.contact wrote:
> On Mar 27, 10:33 am, Ivan Marsh <anno...@you.now> wrote:
>> Man I suck at regex.
>>
>> How do I write a regex that matches http://att.com and http://www.att.com
>> but doesn't match http://matt.com or http://www.bratt.com ?
>
>
> /^http:\/\/(w{3}\.)?att\.com/i
I highly recommend the following app, it helped me a lot in allowing to
paste in text and then check regex expressions against the text quickly:
http://weitz.de/regex-coach/
[Back to original message]
|