The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How to extract text from whole path or string

Posted by khurram on August 19, 2000 at 2:33 PM

Hi Sir,
Can u tell me that how can i extract from the whole path or string
for example my string is
C:/java/old/bin/mah.gif
I want to extract last text that here is "mah.gif"
and other example
C:/java/zolo/lucky/how/maham.tif
the same problem is with it

Sir can u give me a code in java that can extract the text after the last slash "/" .
plx reply me often
i'll wait for ur mail
ur brother
khurram



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us