punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
Checking form input with a positive-option check (that is, only this specified list of characters is allowed, if anything not in this list is present, disallow input), like this:
How can I define a character class that includes all possible combinatins of letters and French accents?if ($form_values{$field} =~ /[^A-Za-z0-9_'-\.\s]/) { disallow; } else { do stuff; }
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Character class for French chars with accents in regex?
by ikegami (Patriarch) on Aug 09, 2007 at 17:22 UTC | |
|
Re: Character class for French chars with accents in regex?
by clinton (Priest) on Aug 09, 2007 at 18:27 UTC | |
by ikegami (Patriarch) on Aug 09, 2007 at 18:59 UTC | |
by clinton (Priest) on Aug 09, 2007 at 19:03 UTC | |
by Anonymous Monk on Aug 10, 2007 at 11:44 UTC | |
|
Re: Character class for French chars with accents in regex?
by jhourcle (Prior) on Aug 09, 2007 at 17:34 UTC |