Regular Expressions 101

Community Patterns

1...34567...881

Medicare Number

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[1-9]{1}[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz|^0-9]{1}[0-9]{1}[0-9]{1}
/
g

Description

Submitted by Kyle Salmon - 3 months ago