in reply to Regex Unexplained Failure

What merlyn said.

This regex wouldn't match my email address for a start.

it matches on you@here.com and other real addresses
but 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
    Ahh, well that's because of a personal oversight, I didn't realize '.' was valid in the name itself, otherwise I would have included it... (Ie: I've never seen an addy with a dot before the @ before..., my bad...)

    I never claimed to be perfect, just good enough... usually...



    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS