From: | Bruce Munro <brucemunro@×××××××××××××.uk> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Regex question | ||
Date: | Thu, 05 Jun 2008 05:41:01 | ||
Message-Id: | 48477C69.3030200@blueyonder.co.uk | ||
In Reply to: | RE: [gentoo-user] Regex question by Adam Carter |
1 | Adam Carter wrote: |
2 | > |
3 | > |
4 | > Thanks guys. I know ^ and will omit it as the ? Is not at the beginning of the string. |
5 | > |
6 | > I'll try '\?.*(http|https|ftp)://' |
7 | |
8 | You can squeeze that up a bit more... |
9 | |
10 | \?.*(https?|ftp):// |
11 | |
12 | 'https?' means 'http' followed by an optional (0 or 1) 's'. |
13 | |
14 | Cheers, |
15 | -Bruce |
16 | |
17 | -- |
18 | gentoo-user@l.g.o mailing list |