I am new to regular expressions.Even if I try it will take sometime for me to get one regular expression for URL validation.
Can anyone help me by providing a regular expression for validating URL http,https to be used with validates_format_of ?
I found this https?://([-\w.]+)+(:\d+)?(/([\w/_.]*(?\S+)?)?)? but its not working with validates_format_of.
I’ll appreciate if anyone helps me with this.