in reply to Regular Expression match too much

Random thought -- if it's a web form you could set the maximum characters of the field to 2. That would diminish the possibilities for error.


($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re^2: Regular Expression match too much
by enemyofthestate (Monk) on Feb 09, 2006 at 12:24 UTC
    The data is parsed from an XML document. I have no control over what the customer puts in it so I have to do a lot of sanity checking