Regular Expressions 101

Catch Dodgy Steam Links

Open Workspace
  • JavaScript
  • Match
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