πΒ In search of the perfect URL validation regex
Best βbang for the buckβ: @^(https?|ftp)://[^\s/$.?#].[^\s]*$@iS Best exhaustive solution: https://gist.github.com/dperini/729294 really impressed with @stephenhay 's REGEX solution (38 characters) to match damn well near all URL possibilities https://t.co/8wuyg4qYVD β Patrick Coombe β (@patrickcoombe) August 7, 2015 Source: In search of the perfect URL validation regex TODO: Consider moving to snippets?