Printing $& will output the following
<record name="rightnav" type="content"><item name="RHS_Image">
Which means the $new_tag will be appended after the "item" tag. Which is now what is intended.
The "$new_tag" is aimed to be inserted after the "<record name="rightnav" type="content">" tags.
Thanks
In reply to Re^2: Insert into string
by Anonymous Monk
in thread Insert into string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |