Unless I'm missing something so obvious I can't see it, given the aforementioned (
Re: Regex: succeeds, but parens don't collect...) typo,
$2 will always be empty since you have only one set of
capturing parens in the RE - capturing just the URI.
A user level that continues to overstate my experience :-))