regex - how to get the syntax correct

Status
Not open for further replies.

dv8inpp

Member
Jan 5, 2019
52
0
6
34
I am trying to build a regex for my outbound numbers. Currently I have this ^((?:096)\d{7})$ which works for 096x xxx xxx

What I would like to have is it with or without country code ^(?:+855|855)((096)\d{7})$ I have tried this but no luck. I've been to https://regexr.com/ but still not understanding regex

What is the obvious mistake? How do I account for
 
Status
Not open for further replies.