1
Reply

Remove variable ends of a string.

Andre

Andre

May 18 2007 4:19 AM
1.6k
Hi there,

I have for example a string like this:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/niveau1/niveau2/test.doc

I want to remove for example till this so that I got this string:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/

Sometimes it will be this:

/bedrijfsgroep/dienstencentrum/pd/catalogus/niveau0/niveau1/

And so on. How can I remove from the till for example niveau0?

Please can someone help me out with this one?

Answers (1)