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
url = %r{ | |
^ | |
([A-Za-z]*) # scheme (e.g. http) | |
: | |
(?: | |
// # mailto: and news: URLs do not require forward slashes | |
)? | |
([0-9.\-A-Za-z@]*) # domain (e.g., www.regexml.org) |