ok, here's another little problem that i have....
there are three types of numbers i'm trying to match...
07912123456
07912 123456
07912-123456
here's my regex...
([0-9]{10,14}) works fine for this number format 07912123456
but for the other two numbers separated by a space or dash, this part of my regex is not working ([0-9]{5})\s([0-9]{4,7})
there are three types of numbers i'm trying to match...
07912123456
07912 123456
07912-123456
here's my regex...
Code:
'#([0-9]{10,14})|([0-9]{5})\s([0-9]{4,7})#'
([0-9]{10,14}) works fine for this number format 07912123456
but for the other two numbers separated by a space or dash, this part of my regex is not working ([0-9]{5})\s([0-9]{4,7})