go ahead... be a heretic | |
PerlMonks |
Re: Re: regex negative lookahead behaviourby sauoq (Abbot) |
on Jul 18, 2003 at 18:59 UTC ( [id://275714]=note: print w/replies, xml ) | Need Help?? |
How about putting a +after the quantifier? Then it breaks as soon as someone typos an extra space into the address. So, you can only do that if you can assume spaces have been normalized and there will be only one... But, if you can make that assumption, then there'd be no reason for a quantifier at all. :-) -sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|