in reply to Re^2: Tweak for my Perl Regex that screens for digits only
in thread Tweak for my Perl Regex that screens for digits only
matches a series of (any combination of) only hyphen, left-paren, right-paren, digits, whitespace, or Ext. or ext./^(?:[-()\d\s]|[Ee]xt\.)*$/
Updated: added the hyphen. Note that a hyphen, if it appears in a character class, must be the first listed character (so that it doesn't look like part of a character range).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tweak for my Perl Regex that screens for digits only
by hackermike (Novice) on Jan 25, 2006 at 20:09 UTC | |
|
Re^4: Tweak for my Perl Regex that screens for digits only
by hackermike (Novice) on Jan 25, 2006 at 20:50 UTC | |
by Roy Johnson (Monsignor) on Jan 25, 2006 at 20:57 UTC | |
by hackermike (Novice) on Jan 26, 2006 at 07:48 UTC | |
by Roy Johnson (Monsignor) on Jan 26, 2006 at 15:52 UTC | |
by hackermike (Novice) on Jan 26, 2006 at 18:56 UTC |