0 Replies - 1157 Views - Last Post: 18 April 2009 - 07:49 AM

#1 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Valid URL

Posted 18 April 2009 - 07:49 AM

Description: Regular expressions pattern for matching a valid URL. The url can be http, https or ftp
^(http|https|ftp)://[a-zA-Z0-9-.]+.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9-._?,'/\+&%$#=~])*[^.,)(s]$

Is This A Good Question/Topic? 0
  • +

Replies To: Valid URL

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1658
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Valid URL

Posted 18 April 2009 - 07:49 AM

Description: Regular expressions pattern for matching a valid URL. The url can be http, https or ftp
^(ht|f)tp(s?)://[0-9a-zA-Z]([-.w]*[0-9a-zA-Z])*(:(0-9)*)*(/?)([a-zA-Z0-9-.?,'/\+&%$#_]*)?$

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1