[thelist] regex help
Tom Dell'Aringa
pixelmech at gmail.com
Fri Aug 25 07:28:02 CDT 2006
Thanks guys! Appreciate the explanation :) Let me just say....doh.
On 8/24/06, Anthony Baratta <anthony at baratta.com
<http://lists.evolt.org/mailman/listinfo/thelist>> wrote:
>* Try this...
*>*
*>* ^\d{5}$
*
Just to explain why this works and yours doesn't...
\d{5} says match 5 digits.
Can you find 5 consecutive digits in "1234567890"? Yes.
^\d{5}$ says match the beginning of the string, 5 digits, then the
end of th string. Thus, it would not match the above string.
More information about the thelist
mailing list