From: | Adam Carter <Adam.Carter@×××××××××.au> |
---|---|
To: | "gentoo-user@l.g.o" <gentoo-user@l.g.o> |
Subject: | [gentoo-user] Regex question |
Date: | Tue, 03 Jun 2008 07:41:00 |
Message-Id: | 707E41AE68E444499861C6B248AB8684534C3CB2A1@excprdmbxw002.optus.com.au |
1 | I want to filter the strings; ? <something> http:// or ? <something? https:// or ? <something> ftp:// from URLs in apache. I know i need to escape ? but i'm not sure about / and i've used '(something|otherthing|whatever)' to make the 'or's work. |
2 | |
3 | <LocationMatch '(\?.*http:\/\/|\?.*https:\/\/|\?.*ftp"\/\/)'> |
4 | Order allow,deny |
5 | Deny from all |
6 | </LocationMatch> |
7 | |
8 | is that regex correct? Will egrep use the exact same regex syntax (so i can use it to check?) |
9 | |
10 | tnx |
Subject | Author |
---|---|
Re: [gentoo-user] Regex question | Iain Buchanan <iaindb@××××××××××××.au> |