Created
April 2, 2018 20:15
-
-
Save luisabarca/760bd0d53623ec99ffec2c74d1e86921 to your computer and use it in GitHub Desktop.
Regexp for valid instagram username
This file contains hidden or 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
# Regex by Jonathan Stassen. http://blog.jstassen.com/2016/03/code-regex-for-instagram-username-and-hashtags | |
/(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment