Skip to content

The regex provided is not validating the GSTIN correctly. #4

@shanmukhig

Description

@shanmukhig

The regex provided is not validating the GSTIN correctly.

The correct regex is: r'^\d{2}[A-Z]{5}\d{4}[A-Z]{1}[A-Z\d]{1}[Z]{1}[A-Z\d]{1}$' (ofcourse python)

The original one provided accepts any string of any length with any no. of spaces etc.

the same can be verified here.

https://regex101.com/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions