Jump to content

[SOLVED] StringRegExp remove path from Array


Recommended Posts

 

$files = _FileListToArrayRec("G:\03_MUSIC\","*.mp3", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT,$FLTAR_FULLPATH)
    $fileArray = UBound($files)-1

        For $x = 1 to $fileArray
            $var = FileGetTime($files[$x],0,0)
            $date =  $var[2]& "/" & $var[1] & "/" & $var[0]&' '&$var[3]& ":" & $var[4] & ":" & $var[5]
            ;ConsoleWrite($files[$x]&" "&$date&@LF)
            ;ConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",1)&@lf)
            ConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",3)&@lf)
        next

 

I would remove the path, the regular expression works on a string , but not in the loop , where I went wrong...

THX.

Edited by rootx
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...