Created
January 3, 2018 21:45
-
-
Save aziznatour/03e2f97cff467f91b0a5e510583603d3 to your computer and use it in GitHub Desktop.
A simple Regex for detecting bot commands (e.g. `?help` and `bot!start`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^.{0,20}[~!$%^&*_\-+:;?=>]\w+(?:\s\w*)?$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment