I have used
preg_match("/$target/i", $file);
which returns many unwanted files
such as
if i am searching for file name test1.php it also returns test2.php.
so I tried to use preg_match_all like
preg_match_all("/$target/i", $file);
which returns nothing
What is wrong in this? In need of suggestions.
Thanks
matching regular expressions with string
Moderator: General Moderators
- crystal ship
- Forum Commoner
- Posts: 36
- Joined: Wed Aug 29, 2007 5:45 am
- crystal ship
- Forum Commoner
- Posts: 36
- Joined: Wed Aug 29, 2007 5:45 am