and then split out the component parts and validate them separately.
That way you can check that the server name has a reasonable tld, and
that the scheme matches something valid, and so on. Check the rfc for
details.
You remembered me that I wanted to have a RFC-compliant URI regexp
Well, this is done now, I’ve just translated the RFC into some ruby
code to make a regexp string
See the attachement.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.