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
/
(?'type'[\w|\[\]\/]+)\s*\$(?'name'\w+)\s*(=\s*(?'default'[\w\'\\"]+)|)
/
gm
Unit Tests
string
$arg1
=
'2344',
$arg2
=
222
â regex does match
string
doTestJob2($arg4,string
$arg1='kâĤ
â regex does match