Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^ # Static keyword # Declares a static method ONLY if type is also present (?: (static) \s+ )? # Return type (?: ( (?:[\w\|_\\\\]*\$this[\w\|_\\\\]*) | (?: (?:[\w\|_\\\\]+) # array notation (?:\[\])* )*+ ) \s+ )? # Method name ([\w_]+) # Arguments (?: \((.*(?=\)))\) )? \s* # Description (.*) $
/
uxms
Input 1
static array[] ISO8859_1(array $d = [], string $s="", $f=array()) foo bar baz
Substitution
static array[] ISO8859_1(array $d = [], string $s="", $f=array()) foo bar baz