Regular Expressions 101

Community Patterns

Malaysian Patronymic Separator

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 - 23 days ago (Last modified 15 days ago)