Regular Expressions 101

Community Patterns

group & substitute

0

Regular Expression
PCRE (PHP <7.3)

/
^([A-Za-z]*)(-)([0-9]*)(.+)$
/
gm

Description

attempting to isolate and substitute (replace) in PCRE.

Submitted by ABc3P0 - 2 years ago