2 Replies Latest reply on Mar 14, 2017 8:55 AM by bhgupta

    Creating RegEx to monitor 13 digit numbers


      Good day,


      We have DLP 10.0.100 and we would like to create a RegEx to monitor South African ID numbers. I found the below RegEx from the internet ,its working but it also picks up software licence numbers and Serial Numbers.


      (((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\ d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229))(( |-)(\d{4})( |-)(\d{3})|(\d{7}))


      South African Id number consists of 13 digits so we want the RegEx to monitor 13 digits and if the number has more than 13 digits it shouldn't be considered as an ID number.


      If there's anyone who knows how to create RegEx, your assistance will be appreciated.