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
/
^[^%]*?(?<=[^'\"])\b(addpaths|addpath|test)\b(?=[^'\"]).*?$
/
gm
Input 1
New
function addpaths() % function addpaths to add paths to path fprintf('running addpaths') fprintf('addpaths running') fprintf('running addpaths function') % fprintf('running addpaths') % fprintf('addpaths running') % fprintf('running addpaths function') % test what happens to 'test' run('test') 'this is a test.' test