Page 1 of 1

regex working with numbers. Headache

Posted: Wed Apr 16, 2003 9:36 pm
by Steven_Smith
I am looking to find the code '0000' in '$result'

This is what I am using, which is great for TEXT but dosn't work for numbers.



PHP:
------------------------------------------------------------------------


if (!preg_match ("/0000/i", $result)) {


------------------------------------------------------------------------


Thanks for any help.

Steve

Posted: Wed Apr 16, 2003 11:29 pm
by hob_goblin