Hi, Do any of you know how to get a list of files from a local directory that match a regex? For example: I am trying to find all files that start with the word "connect".
All files start with connect and then 10 digits, for example: "connect0108081420". How do i do this?
Please help!
Regards //Richard H
Use opendir() and then readdir() in a loop and then
if(substr($filename, 0, 7) == "connect"))
or
if(preg_match("/connect/", $filename))
Thanks a lot!
How come i didn't think of it? Not enough propgramming experience i guess...
//Richard