Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b((\d|[a-zA-Z]{1,2})\d{7})\b
/
gm

Description

Regex for validating Austrian ID cards in both the 2003 and 2021 formats.

Submitted by Enrique Saggese - 5 months ago