I had the following url validation regex:
/(ftp|https?)://[^ \"]+$/
This is from the ref: Regular expression for URL validation (in JavaScript)
This
Try This ..