You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Martin <gi...@gmail.com> on 2009/09/02 07:39:31 UTC

[users@httpd] Lookaround assertions in mod_rewrite/mod_alias regex?

How can one use lookahead/lookbehind assertions in the regex for a
mod_rewrite RewriteRule, or mod_alias AliasMatch? Currently when I
attempt to use a question mark in my regex, as needed for lookarounds,
I get an internal server error for mod_rewrite, or a syntax error for
mod_alias.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Lookaround assertions in mod_rewrite/mod_alias regex?

Posted by Bob Ionescu <bo...@googlemail.com>.
2009/9/2 John Martin <gi...@gmail.com>:
> How can one use lookahead/lookbehind assertions in the regex for a
> mod_rewrite RewriteRule, or mod_alias AliasMatch? Currently when I
> attempt to use a question mark in my regex, as needed for lookarounds,
> I get an internal server error for mod_rewrite, or a syntax error for
> mod_alias.

But you're using Apache 2+?

Bob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org