[cmake-developers] [patch] One more pattern for extracting file name from URL

Ruslan Baratov ruslan_baratov at yahoo.com
Fri Jul 1 11:48:41 EDT 2016


On 01-Jul-16 16:04, Ben Boeckel wrote:
> On Fri, Jul 01, 2016 at 08:58:16 -0400, Brad King wrote:
>> Also, the `([^/]*)\\?.*` part of the regex should be more
>> like `([^/?]*)\\?.*` to avoid eagerly matching early `?`.
> This should also probably skip '#' characters for URLs with anchors.
>
> --Ben
'fragement' goes after 'query' so as far as I understand it's not necessary.
https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax

Ruslo


More information about the cmake-developers mailing list