Mailing List Archive

url.purge and regexp
Hi

How Iam supposed to purge an URL like this in CLI:

http://www.example.com/page.html?foo=bar&bar=foo

Iam asking because I don't know what will happen with
the "?" in the line. Is it part of the regexp or part
of the url then because escaping with "\" is not
possible (Illegal backslash sequence).

Denis Ahrens
url.purge and regexp [ In reply to ]
Denis Ahrens <denis at zeno.org> writes:
> How Iam supposed to purge an URL like this in CLI:
>
> http://www.example.com/page.html?foo=bar&bar=foo
>
> Iam asking because I don't know what will happen with
> the "?" in the line. Is it part of the regexp or part
> of the url then because escaping with "\" is not
> possible (Illegal backslash sequence).

You need to escape the backslash:

url.purge http://www.example.com/page.html\\?foo=bar&bar=foo

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no