Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
(^(test)?_)|((T|t)ests$)
"
gm
Test String
New
RoundConserved UtilsTests utilstests test_foo_bar_bar _test test_something_tests _Utils Test_Foo test_Foo UtilsTests test_function_name _foo my_tests
Substitution
Processing...