PHP Help

Associate
Joined
5 Feb 2006
Posts
129
Location
Birmingham
Just after a little help, extract a number from a website using eregi() the pattern i use is $pattern = '([0-9][,][0-9][0-9][0-9])'; and the number is 0,000 it works fine but i am worried if the number ever drops below 1000 or higher than 9,999 it will break because of the [,] could anyone help me with this!
 
anotherF said:
Just after a little help, extract a number from a website using eregi() the pattern i use is $pattern = '([0-9][,][0-9][0-9][0-9])'; and the number is 0,000 it works fine but i am worried if the number ever drops below 1000 or higher than 9,999 it will break because of the [,] could anyone help me with this!

Anybody help with my question please, the one i started the thread for before being hijacked.
 
Thanks another question on the same subject is it possible to match a somthing if you dont know how many characters there are example i want to mach a number 12121 or 12121212121 it changes everytime the code before is the same always though!
 
Back
Top Bottom