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
In reply to Re^3: array manipulation with string
by johngg
in thread array manipulation with string
by santoshkumarcp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |