Here is the example
SF_Library/example/Platform/Analyses-PLATFORM.part0.xml
SF_Library/example/Platform/Models-PLATFORM.part0.xml
SF_Library/example/Platform/Models-PLATFORM.car
SF_Library/example/Platform/DS-PLATFORM.car
I want to grab base path which is following.
SF_Library/example/Platform/
Anybody know what regex should i use for it?
Regexes ain’t for extracting substrings. Why not use the
dirnamecommand?If you need it in a variable: