Regular expression regex to detect certain leading special characters and ignore

Viewed 26

I have a regular expression below that I would like to ignore if a leading special character such as ; is detected. For example, if I have ;123456789 it should be ignored however if just 123456789 it should match. Thank you

(^|\b)\d{9}($|\D)
0 Answers
Related