I guess there is no generic way to grab reliably the location part as
it can include quotes, quotes followed by spaces, HTTP codes...
So the answer is probably to grab the rest, which has a fixed format
and then consider the location to be anything else:
This would make sure you match everything properly, and the .* part has no choice but to match the location string
Add brackets to taste to catch what you are interested in
In reply to Re: Crafting a regex
by mirod
in thread Crafting a regex
by arturo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |