Find and handle a ArtisticText from a selection

how i can find and replace a text from an active selection?

In my example it is "|Label|"

I work in C#

-Remo