You can't use regular expression with unlink directly. have a look on this http://www.phpfreaks.com/forums/index.php?topic=256367.0 <http://www.phpfreaks.com/forums/index.php?topic=256367.0>Regards Cherankrish On Tue, Jun 15, 2010 at 4:17 PM, Shaun Thornburgh < shaunthornburgh@xxxxxxxxxxx> wrote: > > Hi, > > I need to delete a file with any file extension where i know the name of > the file, is it possible to use regular expressions with the unlink > function? > > Thanks > > _________________________________________________________________ > http://clk.atdmt.com/UKM/go/197222280/direct/01/ > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us > now >