Regular Expressions 101

Community Patterns

GST (India)

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\d{2}[A-Z]{5}\d{4}[A-Z]\d\w{2}
/
gm

Description

Detects Indian GST numbers (Goods & Services Tax). Based on https://groww.in/p/tax/gstin

Submitted by anonymous - a year ago