Ok I have a richtextbox and I want a button that splices text together.

for example

<Hi>
1
<by>
2
</by>
</Hi>

<Hi>
once
<by>
twice
</by>
</Hi>

and I want it so when you press my command button you get
<Hi>
1
once
<by>
2
twice
</by>
</Hi>

I could just use a cut and past code but there might be differnent text in between and more or less of it. If your curios I'm making a coder.