Answers for "check if url is valid in ruby on rails"

0

rails check if a URL is valid

require 'uri'

url =~ URI::regexp
# => 0 if it match, nil if not
Posted by: Guest on December-08-2020

Code answers related to "check if url is valid in ruby on rails"

Browse Popular Code Answers by Language