Advertisement
MrPoxipol

URL find regex

May 5th, 2014
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. ((https?\:\/\/)|(www\.))    # URLs start with http://, https:// or www.
  2. (\w+\.)*\w+                 # followed by domain/host part
  3. (\/[^\s\/]+)*\/?            # and an optional path part
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement