in reply to Re^2: array manipulation with string
in thread array manipulation with string

jwkrahn's code is not doing a replacement because his pattern is inside a zero-width positive look-ahead assertion, i.e. it is in effect doing an insertion at a point in the string that is followed by the pattern because the item being substituted is zero-width.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^4: array manipulation with string
by Bloodnok (Vicar) on Sep 24, 2009 at 11:58 UTC
    ...which just goes to show how apposite my sig is ;-)

    .oO(I should've TIAS !!)

    Many thanx johngg for the enlightenment - self-evidently jwkrahn is a big fan of unnecessary typing :-D

    A user level that continues to overstate my experience :-))