Hi
I am a bit new to using Regex an am trying to create an expression that finds a varying set of numbers in a string, the number format would be something like the cat sat on {numbers} Mats
The Number format can be
NN NN
To
NNNNN NNNNN where N is a number or a ? So for example
12 34
12?? 34??
12345 12345
the separator in between the numbers Blocks is either a whitespace an . or a -
I have come up with the following -
[\d\t .?-]{4,}
Which seems to pick most of the combinations, however if the a 3 digit no has a preceeding space this is also counted. Is there anyway to exclude the preceding space or is there a better way to achieve my goal.
I am trying to achive this using PCRE
Thanks
Mee