Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
double+\s*sum+\s*\(\s*+double+\s*(,+\s*+double+\s*)*\)
/
gm

Description

return a double, are named sum, and accept an arbitrary amount of doubles as input

Submitted by anonymous - 3 years ago