Javascript – My string check doesnt work and I dont know what is the most eficient method to do it
So I have a code to check if a string matches a certain pattern, this pattern: 555-555-5555 (555)555-5555 (555) 555-5555 555 555 5555 5555555555 1 555 555 5555 for exemple this should return true: 1 456 789 4444 but it…