working with substrings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

working with substrings

Johannes Breu
Hello,


my main aim is to learn how to extract a substring out of a string.
If this is my string:
Documents\Home\Experiment1\Images\*xy/*Image0006.tif

I would like to extract the bold letters and assign them to a new variable.

I don´t get it.

Could anybody give me a hint?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: working with substrings

Carl Trapani - SkyTop Software
Hi Johannes,

Perhaps examples from the Java Almanac might help?
http://exampledepot.com/egs/java.lang/GetSubstring.html

Carl

Johannes Breu wrote:

> Hello,
>
>
> my main aim is to learn how to extract a substring out of a string.
> If this is my string:
> Documents\Home\Experiment1\Images\*xy/*Image0006.tif
>
> I would like to extract the bold letters and assign them to a new variable.
>
> I don´t get it.
>
> Could anybody give me a hint?
>
> Thanks.
>