Regular Expressions 101

Community Patterns

Catch Dodgy Steam Links

1

Regular Expression
ECMAScript (JavaScript)

/
^(?!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 - 3 years ago