Last active
January 25, 2019 15:05
-
-
Save AbhiPrasad/6595b008df6096c8ece813f8ea28997d to your computer and use it in GitHub Desktop.
helpful regex
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
// URL | |
const URL_REGEX = /(?:(?:https?:))/i; | |
// Find two words | |
const FIND_TWO_WORDS = /^.*?\b(WORD_ONE)\b.*?\b(WORD_TWO)\b.*?$/i; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment