Answer the question
In order to leave comments, you need to log in
How to write a regular expression with a specific pattern?
The essence of the question is this. I can't figure out how to make the regular expression process this pattern:
The first character can be a letter or a certain character, and then letters and numbers are allowed, as well as other allowed characters.
So far it turns out like this:
I can’t understand how to make sure that the characters after the first character are checked separately.
match(/^[A-Za-z:.,_/-]{1}/)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question