2014 Feb 06 12:50 PM
Dear All,
I would like to ask you for help in the following case. I have done number of trials but did not succeed.
I would like to amend long HTML string
Basically within the string I would like to replace the following part:
<bee:html><th align="left"></bee:html># <htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/># <bee:html></th></bee:html>#
<bee:html><th/></bee:html>#
With
<bee:html><th align="left"></bee:html># <htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/># <bee:html></th></bee:html>#
<bee:html><th align="left"></bee:html># <htmlb:textView design="EMPHASIZED" text="Attribute"/># <bee:html></th></bee:html>
I.e. I need to add the underlined part.
Would anyone give me some hint how to approach this? As e.g. Replace command does not work due to special characters.
Many thanks,
Jan
2014 Feb 06 3:12 PM
Regular expression can be used in this case.
Basically we can put regex [^<]* which means all consecutive characters not equaling <.
Try running below code.
//