Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
`
(?s)new\sMyClass\((?:[^;n]|n(?:n|e(?:n|w(?:n|\s(?:n|An(?:ew\sAn)*(?:n|o(?:n|t(?:n|h(?:n|e(?:n|r(?:n|C(?:n|l(?:n|a(?:n|sn))))))))|e(?:n|w(?:n|\sn)))))))*(?:[^;en]|e(?:[^;nw]|w(?:[^;\sn]|\s(?:[^;An]|A(?:[^;n]|n(?:ew\sAn)*(?:[^;eno]|o(?:[^;nt]|t(?:[^;hn]|h(?:[^;en]|e(?:[^;nr]|r(?:[^;Cn]|C(?:[^;ln]|l(?:[^;an]|a(?:[^;ns]|s[^;ns]))))))))|e(?:[^;nw]|w(?:[^;\sn]|\s(?:[^;An]|A[^;n]))))))))))*(?:n(?:n|e(?:n|w(?:n|\s(?:n|An(?:ew\sAn)*(?:n|o(?:n|t(?:n|h(?:n|e(?:n|r(?:n|C(?:n|l(?:n|a(?:n|sn))))))))|e(?:n|w(?:n|\sn)))))))*(?:e(?:(?:w(?:\sA?)?)?|w\sAn(?:ew\sAn)*(?:o(?:t?|th(?:e?|er(?:C?|Cl(?:a?|as))))|e(?:w(?:\sA?)?)?)?))?)?\)
`
gm
Unit Tests
There are no unit tests, click
here
to add some.