[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Regexp for parsing urls

From: Pablo Beltran <pbeltranl_at_gmail.com>
Date: Fri, 16 Apr 2010 23:47:57 +0200

Hi,

Do you know a regexp to validate Subversion urls?

I've written one quite basic

/^(svn|file|http|https):\/\/\w+(:[0-9]+)?(\/\w*)*/

but it doesn't work for all cases.

Pablo.
Received on 2010-04-16 23:48:44 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.