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
/
#\w+(?:[\/.]\w+)?
/
gm
Input 1
1
New
I'm trying to match a string using regex that sometimes contains a forward slash in it it /. This is an example string. Armor Wars #1/2 But it could also be Armor Wars #1 or Armor Wars #25.2 or Armor Wars #5.NOW virtually anything
Extraction