K
K
kr_ilya2018-08-16 08:00:34
HTML
kr_ilya, 2018-08-16 08:00:34

How to make a regular expression for digits, % and dashes?

I am not strong in this direction, so I turn to you. I need a regular expression to enter numbers% -
something like this: (15% -10% -1%) in this format:
pattern="^[_A-z0-9]{1,}$"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-08-16
@kr_ilya

If I understand correctly, then you need this?
or ^[\d\-%]+$
https://regex101.com/r/MIa0AE/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question