
AndyNewby
Novice
Jun 7, 2003, 4:51 AM
Post #1 of 4
(10716 views)
|
I'm trying to match the filename for a 'file' sype field. The format of the variable is; C:\WINDOWS\Desktop\wee\contact-button.gif I'm trying to grab the contact-button.gif. I currently have; $IN->param('TestImage') =~ m,(.+?)\.(gif|jpg|jpeg)^, and $img = $1; The problem is, that is not grabbing anything :| I have aslo tried; $IN->param('TestImage') =~ m,\\(.+?)^, and $img = $1; Anyone got any suggestions? Cheers Andy
|