Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

RegEx which removes parent directory + trailing text from Filepath

$
0
0
Hiho Forum,

I'm trying to find a regex to do this transformation with StringRegExpReplace().

Input:
"c:\temp\test\_PCs\file_1.avi_PC.jpg"

Output:
"c:\temp\test\file_1.avi"

- Trailing text "_PC.jpg" is removed from string
- Parent directory "\_PCs\" is removed from string too

Can anybody help me out on this one :)?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>