Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^([12]\d{3}-\d{2}-\d{2})?\s?([\w\W\s]+)\s-\s.*(Livewire)$
/
gm

Description

This is used to reformat an EN article title

Submitted by anonymous - 6 years ago