Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Catch Dodgy Steam Links
Open Workspace
JavaScript
Match
Created 2021-06-23 06:32
1
Regular Expression
/
^
(?!
https:
\/\/
steamcommunity
\.
com
$
)(
^
(
https
?
:
\/\/
)(
st
[
\w
]
+
)
co
(
(
m
|
n
){1,}
)(
[
\w
]
+
)
\.
(
.
*
){1,}
\.
?
(
.
*
){1,}
)
/
gm
Description
Catch Dodgy steam links
Catches most if not all spam links that usually get spread in chat rooms
Submitted by
Anonymous