Regular Expressions 101

Community Patterns

1...56789...900

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 - 5 months ago (Last modified 5 months ago)