Validate South African ID Number using regex pattern

Home Forums Quform WordPress Validate South African ID Number using regex pattern

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12319
    ZillaConsulting
    Participant

    I am trying to get a regex pattern working to do validation on a South African ID Number. Here is a regex that someone else is using successfully elsewhere, but I don’t know how to enter it into the required field in the settings:

    string IdExpression = @"(?<Year>[0-9][0-9])(?<Month>([0][1-9])|([1][0-2]))(?<Day>([0-2][0-9])|([3][0-1]))(?<Gender>[0-9])(?<Series>[0-9]{3})(?<Citizenship>[0-9])(?<Uniform>[0-9])(?<Control>[0-9])";

    #12320
    ZillaConsulting
    Participant

    In addition to this I need to add validation on a phone number.

    #12341
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #12342
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy