Answer the question
In order to leave comments, you need to log in
How to write a regular expression to capture several OKVED?
I tried to write myself:
But it's not right and not up to the end.
You need to capture the following types of oqueds ( 1 === \d{1} ):^[\d]{2}(?:[\.\,]{0,2}[\d]{0,2})$
Answer the question
In order to leave comments, you need to log in
^\d\d(?:[ .,]\d\d?)*$
https://regex101.com/r/HNNPVh/1
If invalid:
^\d\d(?:([.,])\d(?:\d(?:\1\d\d?|)|)|)(?: \d\d(?:([.,])\d(?:\d(?:\2\d\d?|)|)|))*$
d(?=r) matches d only if followed by r but r will not match expression -> test
(?<=r)d matches d only if preceded by r but r will not match match expression -> test
plus
[^d]+ all up to d
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question