I am trying to add a mask or filter to text fields for a username that can not except any spaces and another regex for phone numbers. When i put these on the text input field and test, it will not let me enter anything into the text field. even if i remove the '$' at the end it still does not work. Any help would be much appreciated.
phone regex - ^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
no space regex - ^[a-zA-Z0-9\-_$@*!]{3,30}$