Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([2][0-9]{3}|[0-9]{2})(\s*|\/|[-]|[.])([0-1]*[0-9])(\s*|\/|[-]|[.])([0-9]{1,2})$
/
gm

Description

ตัดวันเดือนปี แบบตัวเลข

Submitted by playwhyyza - 6 years ago