i'm trying to find an expression that matches a phone number in the format of (0[2,3,6,7,8,or 9]) XXXXXXXX where X is a digit, the space must be matched and so must the parentheses
My current expression is:
/\b\(0[236789]\)\s(\d){8}\b/g
but it's not picking up any test numbers such as
(02) 12345678
I know regex phone number questions get spammed on SO. I have been reading through all the ones I can find which is how I've made it to this point but I can't for the life of me figure this out.
\bstands for word boundary probably the strings you're testing don't start and end with a word boundary./^\(0[236789]\)\s(\d){8}$/where^stands for string start and$for string end.