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.";
|
|---|