I'm using
Code: Select all
$SelectedItems = get("SelectedItemsNames", "<crlf>");In the while loop I want to strip off the extension (.avi, .wmv, .whatever) for that filename.
$FileName contains the current array element in the list, but If I use e.g.
Code: Select all
$OutputFile = regexreplace("$FileName", "\.\w+$");$Outputfile
and not e.g. BestMovieEver (if the $FileName was BestMovieEver.avi)
The regex isn't the best but it should be enough to filter out a normal (windows) file extension.
Flaw in my logic?
XYplorer Beta Club