In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Eric Ellsworth) writes:
>Right now the regexp I'm using is:
>
> /http:\/\/([^(\w*?\.?mysite\.com)]*)\//i
>
>but it does not match something it should, i.e.,
>
> http://www.reuters.com/otherstuff.
>
>Where am I going wrong?
perldoc perlre
[^(\w*?\.?mysite\.com)]
means "a character which is not in the set of
left parenthesis
word characters (a-zA-Z0-9_)
question mark
period
right parenthesis
The question mark and period are repeated and the letters m,y,s,i,t,e,c,o,m are
redundant with the \w.
You need to understand character classes.
--
Peter Scott
http://www.perldebugged.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]