K kalarius Active Member Licensed User Longtime User Oct 23, 2015 #1 I have the follow code DIM Temp() as string dim Geniko as string ' mylistfiles is a list with mp4 files of the directory "/mnt/scifi" For a=0 To MyListFiles.Size-1 geniko=mylistfiles.get(a) ' the first object is "inter.mp4" temp=regex.split(".",geniko) ' here is the problem It does not recognize the "." so the temp.lenght=0 any suggestion? Kalarakis Creta Greece
I have the follow code DIM Temp() as string dim Geniko as string ' mylistfiles is a list with mp4 files of the directory "/mnt/scifi" For a=0 To MyListFiles.Size-1 geniko=mylistfiles.get(a) ' the first object is "inter.mp4" temp=regex.split(".",geniko) ' here is the problem It does not recognize the "." so the temp.lenght=0 any suggestion? Kalarakis Creta Greece
RandomCoder Well-Known Member Licensed User Longtime User Oct 23, 2015 #2 Dot is a special character for regular expressions. You need to escape it with a forwardslash. Try... temp=regex.split("\.",geniko) Upvote 0
Dot is a special character for regular expressions. You need to escape it with a forwardslash. Try... temp=regex.split("\.",geniko)