Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Regex question
Date: Wed, 04 Jun 2008 23:27:06
Message-Id: 1212621946.3487.1.camel@localhost
In Reply to: Re: [gentoo-user] Regex question by tecnic5@silvanoc.com
1 On Wed, 2008-06-04 at 08:57 +0200, tecnic5@××××××××.com wrote:
2 > Hi,
3 >
4 > I just wanted to comment something about Iain's suggestion:
5 >
6 > '^\?.*(http|https|ftp)://'
7 >
8 > If you add that '^' you're assuming that's the beginning of the string (as
9 > you may already know); the thing is I cannot see the cases where your URL
10 > starts with '?', the characters, and finally protocol and rest of URL. I
11 > mean, I can understand you found that string somewhere in the URL, but I
12 > don't see it being like that from the very beginning.
13
14 I was indeed assuming ? was at the beginning when I added the ^...
15
16 > Perhaps I missed something by the way, can you guys enlight me?
17 --
18 Iain Buchanan <iaindb at netspace dot net dot au>
19
20 The difference between a good haircut and a bad one is seven days.
21
22 --
23 gentoo-user@l.g.o mailing list

Replies

Subject Author
RE: [gentoo-user] Regex question Adam Carter <Adam.Carter@×××××××××.au>