Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: regex negative lookahead behaviour

by sauoq (Abbot)
on Jul 18, 2003 at 18:59 UTC ( [id://275714]=note: print w/replies, xml ) Need Help??


in reply to Re: regex negative lookahead behaviour
in thread regex negative lookahead behaviour

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.";
  • Comment on Re: Re: regex negative lookahead behaviour

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://275714]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found