I want to create a regular expression which will:
- not contain any space and special characters except "-" and "_"
- it should contain at least one alphabet character
The regular expression I created is:
^[^/\s/]+[a-z]{1,}[0-9]*[\-\_]*[^\/][^/\s/]$
It only only matches if my string contains at least 4 characters, including 1 alphabet. I tried it on https://regex101.com/#javascript Can someone help me what I am doing wrong here.