Another consideration for having >1 regex (which may or may not be premature optimization) is that if you have seperate regexes we can create hash maps similar to how maps work (a hashmap of domain_regex -> list of path regexes) which would make overall remap performance faster/better.


On Tue, Mar 25, 2014 at 9:50 PM, Brian Geffon <briang@apache.org> wrote:
Right.


On Tuesday, March 25, 2014, Leif Hedstrom <zwoop@apache.org> wrote:

On Mar 25, 2014, at 7:51 PM, Brian Geffon <briangeffon@gmail.com> wrote:

> What Thomas called Question #1 -- 1 Regex.
>

Makes sense to have them combined. Assuming groups etc. works, that allows you to do e.g.

   regex_map http://(.*)\.ogre\.com/([^/]+)/(.*)  http://$2/$1/$3


or some such. i.e. take parts from the path match and use as the host, and vice versa. Right? :)

Cheers,

— Leif