Created
October 14, 2014 20:43
-
-
Save zvlex/f8ed7a8673f79d62b7ae to your computer and use it in GitHub Desktop.
URI Regexp for Rails 4
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
| /\A(http|https):\/\/(([a-z0-9]+\:)?[a-z0-9]+\@)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?\z/ix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment