w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How can I properly handle greedy and optional patterns in python regex

Perhaps you could target lesser characters instead of .*

^//network/path/folder/_.*?/[^/]*/([^/]*)

http://regexr.com?356lh

[^/]* means any number of occurences of any character but NOT A FORWARD SLASH. ^ is not flag.





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