Regular Expressions 101

Community Patterns

function identifier with arguments

0

Regular Expression
PCRE (PHP <7.3)

/
(?<a>[^\ \ ]*)(?:\()(?<b>[^\)]*)(?:\))
/
gm

Description

matches a function signature and extracts the function name and the contents of the parenthesis as match groups

Submitted by anonymous - 5 years ago