Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=[a-z]|)\s(bin|binti|a[\\\\\/][lp])\s.*
/
i

Description

This regular expression matches patronymic separators commonly used in Malaysian names such as:

  • Bin
  • Binti
  • A/L or A\L
  • A/P or A\P

This regular expression does not match these seperators:

  • Anak Lelaki
  • Anak Perempuan
Submitted by alzhahir - 7 months ago (Last modified 7 months ago)