05-07-2012, 03:41 PM
Macro Macro1703
out
;str s="u:\myfile.txt u:\my file with space u:\myfolder u:\my folder with space"
str s="u:\myfile.txt u:\my file with space \\x\y\myfolder \\x\y\my folder with space"
ARRAY(str) a; int i
;if(!findrx(s "[a-z]:.+?(?= [a-z]:|$)" 0 1|4 a)) ret ;;simpler, does not work with \\x\y\...
if(!findrx(s "([a-z]:|\\\\).+?(?= ([a-z]:|\\\\)|$)" 0 1|4 a)) ret ;;supports \\x\y\...
for i 0 a.len
,out a[0 i]