D
D
Denis2021-06-24 13:01:47
Regular Expressions
Denis, 2021-06-24 13:01:47

Can't fix the regex?

Previously, the regular season was such that \D+numbers arrived and sometimes some symbol slipped between them, which was successfully deleted. But now a dash has been added to the numbers. I don’t understand how to change it so that only numbers and dashes are skipped?
423423423
00-1231
7987-1221

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-06-24
@Drumsid

[^\d-]+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question