RegX pattern required

  • Thread starter Thread starter Glenn Wilson
  • Start date Start date
G

Glenn Wilson

Can anyone help me with a regx to match the values 1 to
6. No these could come in several formats and we only
want matches where there is a single number with no other
numbers next to it in the string, We could have an alpha
beside it on either side though

Examples of matches
1
2
3
4
5
6
1abc
abc2
1 abc
abc 1
1 +31651465867 (Where we would only want the 1)
+31651465867 1(Where we would only want the 1)

Examples of no matches
+61539759765
12 ksahflkah
 
Back
Top