/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
validates_format_of :company_url, :with => /((http|https):\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?)/