2009
05.09

I need to have a good regex for URL validation in javascript. After googling a number of websites, blogs and forums. The best I found is this blog post by Ivan Porto Carrero

I modified it a bit to make it valid in Javascript as shown below:

 

If you like it, a link back/comments would be much much appreciated :)

 

Possibly Related Posts

 

Incoming Search Term

java script regex for validating url (1), regex for url validation in javascript (1), regex in javascript for url validation (1), regex javascript url validation (1), regex modify url javascript (1), regex url (1), regex url validation javascript (1), regular expression for url validation in javascript (1), valid url regex javascript (1), js reg expression matching a url (1), javascript validation match (1), javascript validate url preg match (1), javascript regex replace url (1), javascript regex url matching (1), javascript regex url validation (1), javascript regexp change urls (1), javascript regular expression match url (1), javascript replace regex url (1), javascript strip number from url regexp (1), javascript url validation regex (1), validate url javascript (1)

Advertise Here

1 comment so far

Add Your Comment
  1. Really very informative post. Thanks for sharing it.

* Copy this password:

* Type or paste password here: