Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
[0-9A-Za-z]
/
g

Description

This allows only the specified characters to be a valid MyKad or Passport Number in Malaysia.

Submitted by Munirul Haikal - 3 years ago