Hi I am new to the regular expression.
Can someone tell how to format a regular expression pattern for validating Numbers with many spaces and special characters? here the space position are not defined.
I have tried like this ^[0-9]{0,12}$ but I don’t know how to place the spaces in-between ?
Ex:'2356 85 568#','5875 #2545','#2525','4567'
To allow any number of spaces, dashes and #-signs between up to 12 numbers, use this: