I'm using the following regular expression.
regForUrl =/^((ftp|http|https):\/\/)(?:(www+\.)?)(?:([a-zA-Z0-9-]+\.))+([a-z]{2,3}\/)+(?:[\w\-\.\_\__\~\:\/\?\#\@\!\$\,\;\*\$\(\)\&\=\+\:\%]?)+$/;
Example URL = 'http://test.domainName.com.ab:5445/endUrl'.
This regex not accepting the above mentioned URL. If ":" occurs the regex returning false. Please solve this issue...