Posted by Mara Guida on 10/22/97 11:34
Mara Guida wrote:
> ### this will match foto5jpg without extension;
> ### probably you will not have such a filename in the directory
> ### but you may want to remove the () and escape the .
> if (preg_match("/\w+(.jpg)/", $file)) {
Just one more thing ...
preg_match("/\w+(.jpg)/", $file)
will also match "rejpg.doc"
Navigation:
[Reply to this message]
|