in reply to Need help with regex/strategy

I'd try it like this:
  1. Split on the question mark, consider only the first chunk
  2. Split that first chunk on the slash
  3. If the last part of that contains a dot, take it. If not, take the second-to-last part.
Perl 6 - links to (nearly) everything that is Perl 6.