Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([0-9]{1,2})(\s*|\/|[-]|[.])([A-Za-z]+|[0-1]*[0-9]|[-]+|[-]{1,2}.[-].)(\s*|\/|[-]|[.])([0-9]{2,4})$
/
gm

Description

ตัดวันเดือนปี ไทย/อังกฤษ

Submitted by anonymous - 6 years ago