[Python] Regex for DigiPIN [closed]

Discussão em 'Python' iniciado por Stack, Junho 6, 2025.

  1. Stack

    Stack Membro Participativo

    Ref: https://www.indiapost.gov.in/VAS/Pages/digipin.aspx

    Technical doc current link: https://www.indiapost.gov.in/VAS/DOP_PDFFiles/DIGIPIN Technical document.pdf (this url might expire over time)

    Excerpt from the pdf:


    The detailed structure is such that the DIGIPIN is essentially an encoding of the latitude and longitude of the address into a sequence of alphanumeric symbols using the following 16 symbols: 2, 3, 4, 5, 6, 7, 8, 9, C, J, K, L, M, P, F, T.
    ​

    A sample DigiPIN address at the intended level of precision: 'GL8-874-X3GW'

    So, what would be regular expression and associated code in python for detecting and extracting a DigiPIN in a text string ?

    Continue reading...

Compartilhe esta Página