w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Regex - Find the match that is inside a match

You can try this regex:

/href=[^>]+.pdf/

regex101 demo

Most of the time, when you can avoid .* or .+ (or their lazy versions), it's better :)

Also, don't forget to escape periods.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.