Hi everybody i’m working on the telephone number project i’ve tried many regex pattern to match the cases but im still stuck
Please help
this is what i tried
1([(\s]+\d{3}[)\s])(\d+)$|([\s(\d]\d+[\s|)|-\d])(\d+[\s-\d])+(\d+)$
Hi everybody i’m working on the telephone number project i’ve tried many regex pattern to match the cases but im still stuck
Please help
this is what i tried
1([(\s]+\d{3}[)\s])(\d+)$|([\s(\d]\d+[\s|)|-\d])(\d+[\s-\d])+(\d+)$
How are you stuck? What problems are you having and what else have you tried?
Have you tried using tools like regex101 (I suggest clicking “switch to unit tests”)?
Yes i tried i found a solution thanks
Congratulations on figuring it out! Happy coding.