regex optionally allowed parentheses, dots, dashes, spaces, and plus sign in phone number
问题 I'm trying to validate the phone number value, I have this regEx /^\d+(-\d+)*$/ allowing a number with dashes in between of numbers. I find it here, but I forgot the link. And I try to edit it to optionally allowed parentheses, dots, dashes, spaces, and plus sign but I'm a beginner so that for now I can't do this to work. And please note that the user is free what format they are like to use, it simply allow them to input either dashes, space, plus sign, dots, and parentheses. Value allowed :