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
/
(?<!#\s)@unittest\.(?!skipUnless)(skip|expectedFailure).*
/
g
Input 1
1
New
!ignore this, because skipUnless means I have an acceptable conditional flag @unittest.skipUnless(do_test, do_test_msg) !catch these 2, lazy test-passing @unittest.skip("fb212.test_urls_security_usergroup Test_Detail.test_related fails with 302") @unittest.expectedFailure !bonus points... ignore things that are commented out # @unittest.expectedFailure