O
O
olya_0972020-04-18 09:04:02
JavaScript
olya_097, 2020-04-18 09:04:02

How to prevent regex from entering 0 exclusively as the first character?

and the second, third, etc. - you can
now 0 generally you can’t impose

restrictions on entering characters leave
https://jsfiddle.net/zdLx5yh6/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-04-18
@olya_097

/^0|\D/g

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question