[thelist] regex help

Tom Dell'Aringa pixelmech at gmail.com
Thu Aug 24 16:41:38 CDT 2006


Heyo,

My pathetic regex skills strike again. All I need is a pattern to match 5
digits (no alpha) no more, no less. I figured this:

\d{5}

Which works until you go *more* than 5 digits. It keeps saying its okay,
when I have more than 5. How can I restrict it to 5 digits and 5 digits
only?

Thanks

Tom



More information about the thelist mailing list