regex working with numbers. Headache

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Steven_Smith
Forum Newbie
Posts: 2
Joined: Thu Mar 13, 2003 6:31 pm

regex working with numbers. Headache

Post 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
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Post Reply