How do I remove part of a path?

Jim Ault jimaultwins at yahoo.com
Mon Aug 1 10:30:19 EDT 2011


If you are concered about the current itemDel setting 
then you could add one line (instead of 3) before the path operation

replace "/" with the itemDel in itemsToParse


> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
>
> Mike

On Sun, Jul 31, 2011 at 7:51 PM, Michael Kann <mikekann at yahoo.com> wrote:

> Pete,
> One little improvement is needed:
> replace item 4 of <wherever your url is> with empty in <wherever your url
> is>
>
> When I change the itemDelimiter to something exotic I almost always forget
> to change it back then wonder why those items don't obey. If you are going
> to change the itemDelimiter you might try something like:
>
> put the itemDel into old_delimiter
> set the itemDel to "/"
> -- gather some items
> set the itemDel to old_delimiter
> Mike

> --- On Sun, 7/31/11, Pete <pete at mollysrevenge.com> wrote:
>
> replace "/public.html" with empty in <wherever the url is>.  That's
> assuming
> it's always the same string you want to get rid of.  Alternatively:
> set the itemdelimiter to "/"
> replace item 4 of <wherever your url is> with empty
> Pete>
>
> On Sun, Jul 31, 2011 at 6:58 PM, Admin <admin at mfelkerco.com> wrote:
> > Hello all,
> > Say I have the following path:
> >
> http://www.travelandworkusa.com/public_html/userfiles/Felker_Mike/robot_trans_noshadow.png
> 
> > How do I get rid of just /public_html ?



More information about the use-livecode mailing list