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
/
R(\[-?\d+\])C(\[-?\d+\])|R(\[-?\d+\])C|RC(\[-?\d+\])
/
g
Input 1
1
New
R C RC RC[1] RC[-1] R[1]C R[-1]C R[1]C[1] R[-1]C[1] R[1]C[-1] R[-1]C[-1] R[foo] C[foo] R[foo]C RC[foo] R[foo]C[foo] RC[0] RC[0] R[0]C R[0]C R[0]C[0] R[0]C[0] R[0]C[0] R[0]C[0] RC[99] RC[-99] R[99]C R[-99]C R[99]C[99] R[-99]C[-99] R[99]C[-99] R[-99]C[99]