use split.  split the string at "." then split the first value in the
resulting array at "\".  the file name will be the last non-null value in
that array.

-----Original Message-----
From: Evan Picard [mailto:empicard@;gw.dec.state.ny.us] 
Sent: Wednesday, October 30, 2002 10:48 AM
To: [EMAIL PROTECTED]
Subject: i only want the file name!


how can i get ONLY the file name from a variable?
example:
$var = "F:\Trends_Analysis\data\data_creation\batchtest\emp805575.jpg"


all i want is "emp805575" with NO EXTENSTION.

is this possible?


evan

-----------------------------------------------------------

To make changes to your subscription, please visit our website,
http://www.ermapper.com/technicl/ermapperl/index.htm
-----------------------------------------------------------

To make changes to your subscription, please visit our website, 
http://www.ermapper.com/technicl/ermapperl/index.htm

Reply via email to