R
R
runapa2022-01-30 23:51:42
Regular Expressions
runapa, 2022-01-30 23:51:42

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

1 answer(s)
A
Alexander Karabanov, 2022-01-31
@karabanov

What do you mean https://regex101.com/r/ROjnM2/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question