11Tami Posted July 26, 2007 Author Share Posted July 26, 2007 This is all I could find regarding details about delimiters it doesn't explain well enough how to use a delimiter if using like this / http://en.wikipedia.org/wiki/Delimiter Link to comment https://forums.phpfreaks.com/topic/61064-cant-get-file/page/2/#findComment-307597 Share on other sites More sharing options...
teng84 Posted July 26, 2007 Share Posted July 26, 2007 delimiter or/ means you are limiting the string base on your pattern sample the pattern is /[a-z]{3}\.[a-z]{3}/ means it will only accept php.php and not php.php.php Link to comment https://forums.phpfreaks.com/topic/61064-cant-get-file/page/2/#findComment-307606 Share on other sites More sharing options...
11Tami Posted July 26, 2007 Author Share Posted July 26, 2007 I don't know its not sinking in but thanks your posts led me to more about it under "regular expressions php." But deadevil and markjoe, guess what now I can name my text file what I want with this. if(preg_match("/".$currentFile."\.txt/","/".$file."\.txt/")): Now I'm working on the rest, I'll let you know how it goes. Link to comment https://forums.phpfreaks.com/topic/61064-cant-get-file/page/2/#findComment-307621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.