in reply to Re: replacing text you have already replaced...
in thread replacing text you have already replaced...

I wanted it to start from where it matched a token.. i.e.
This is a template <TEMPLATE_DATA_FOOTER> mmm-kay
and say <TEMPLATE_DATA_FOOTER> subs in <TEMPLATE_DATA_ADDRESS>... rather than restarting at the beginning I want to restart before <TEMPLATE_DATA_FOOTER>... I suppose I could set pos() = pos() - length($1) or something like that... that'd be weird...

                - Ant

Replies are listed 'Best First'.
Re: Re: Re: replacing text you have already replaced...
by Hofmator (Curate) on Jul 25, 2001 at 14:30 UTC

    I just had an idea for your problem, why not make your function recursive and do the repeated replacement there?

    hth
    -- Hofmator