63
0
DLP

Regular expression of Ukrainian Identification code

63

IRegular expressions and life hacks for control and monitoring of the Ukrainian identification number in the DLP system.

  • RegEx
(?:^|\s)(?!0+)([0-9]{10})(?:$|\s|\.|\,)

(?:^|\s) – start of string (with a new line or space)
(?!0+) – from 0 do not start
([0-9]{10}) – 10 digits
(?:$|\s|.|\,) – end of string (line end, space, dot, or comma)

Leave a Reply

Your email address will not be published.