Adam Carter wrote:
Thanks guys. I know ^ and will omit it as the ? Is not at the beginning of the
string.
I'll try '\?.*(http|https|ftp)://'
You can squeeze that up a bit more...
\?.*(https?|ftp)://
'https?' means 'http' followed by an optional (0 or 1) 's'.
Cheers,
-Bruce
--
ge
> > I just wanted to comment something about Iain's suggestion:
> >
> > '^\?.*(http|https|ftp)://'
> >
> > If you add that '^' you're assuming that's the beginning of
> the string (as
> > you may already know); the thing is I cannot see the cases
> where your URL
> > starts with '?', the characters
On Wed, 2008-06-04 at 08:57 +0200, [EMAIL PROTECTED] wrote:
> Hi,
>
> I just wanted to comment something about Iain's suggestion:
>
> '^\?.*(http|https|ftp)://'
>
> If you add that '^' you're assuming that's the beginning of the string (as
> you may already know); the thing is I cannot see the
z <[EMAIL PROTECTED]>
Responsable de I+D
SILVANO CONSULTORES
Tfno.: 93.412.79.12 -- Fax: 93.410.92.90
http://www.silvanoc.com/
Iain Buchanan <[EMAIL PROTECTED]>
04/06/2008 01:33
Por favor, responda a gentoo-user
Para: gentoo-user@lists.gentoo.org
cc:
Asu
Hi,
On Tue, 2008-06-03 at 17:39 +1000, Adam Carter wrote:
> I want to filter the strings; ? http:// or ? https:// or ? ftp:// from URLs in apache. I know i need to
> escape ? but i'm not sure about /
/ needs to be escaped in perl if your regex delimiters are / as well,
but here you use ' so I
5 matches
Mail list logo