[thelist] regex help

Matt Warden mwarden at gmail.com
Wed Feb 14 10:28:23 CST 2007


On 2/14/07, Brian Cummiskey <brian at hondaswap.com> wrote:
> Hi All,
>
> I'm stuck on a regex problem.  I need to validate some item numbers.
> They are anywhere from 1 to 10 characters long, alpha, numeric, spaces,
> -'s and _'s only.

^[a-zA-Z0-9_ -]{1,10}$

-- 
Matt Warden
Cleveland, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list