in reply to
Need help with regex/strategy
I'd try it like this:
Split on the question mark, consider only the first chunk
Split that first chunk on the slash
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.
Comment on
Re: Need help with regex/strategy
In Section
Seekers of Perl Wisdom