-
-
Save arozwalak/7429994 to your computer and use it in GitHub Desktop.
RegExp: with or without "http://"
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
(?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)? | |
RegExp: /(?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi | |
pattern: (?:(?:http|https):\/\/)?([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4})\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)? | |
flags: gi | |
1 capturing groups: | |
group 1: ([-a-zA-Z0-9.]{2,256}\.[a-z]{2,4}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment