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"
[0-9]\s*(?:[+-][+-]|\*/)\s*[0-9]
"
gm
Test String
New
This is test 1 -- 1 This is test 2 This is test 3 + 1 This is test 4 */ 4
Extraction
Processing...