Regular Expressions 101

Community Patterns

string substitution in bash behaving differently from PCRE(PHP<7.3>

1

Regular Expression
PCRE (PHP <7.3)

/
^(.*)_(\d{1,3}$)
/
gm

Description

question about bash not returning expected results, the same result as this saved regex returns here

Submitted by anonymous - 10 months ago