regular expression matching file extension
Posted in programmer on Enero 28th, 2009 by adminFor unknow reason the expected regular expression
eregi("[jpe?g|gif|bmp|png]$",$from)
doesn’t work :(
There is an opportunity with using preg_match as:
preg_match("/^.*.(jpg|jpeg|png|gif)$/i",$from)