Posted by Aaron on 03/27/07 17:09
On Mar 27, 12:33 pm, Ivan Marsh <anno...@you.now> wrote:
> Man I suck at regex.
>
> How do I write a regex that matcheshttp://att.comandhttp://www.att.com
> but doesn't matchhttp://matt.comorhttp://www.bratt.com?
>
> I'm trying to create a whitelist but I keep ending up with sites I don't
> want matching my criteria.
>
> I just can't seem to get my head around it.
>
> Any help would be appreciated.
check out the following site. It helped me out a lot.
http://www.anaesthetist.com/mnm/perl/regex.htm
Navigation:
[Reply to this message]
|