in reply to Regex Unexplained Failure
This regex wouldn't match my email address for a start.
it matches on you@here.com and other real addressesbut it wouldn't match "john.smith@johnsmith.com", would it?
And if you're thinking "yes it would!", then you might like to check what the \w means in regexes. I spent a lot of time struggling when I first started learning Perl because I thought my concept of a word and Perl's were the same. They aren't.
--
($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex Unexplained Failure
by Flame (Deacon) on Aug 04, 2002 at 00:20 UTC |