<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Modify long (html) string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-long-html-string/m-p/10102228#M1815189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regular expression can be used in this case.&lt;/P&gt;&lt;P&gt;Basically we can put regex &lt;STRONG&gt;[^&amp;lt;]*&lt;/STRONG&gt; which means all consecutive characters not equaling &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Try running below code.&lt;/P&gt;&lt;DIV style="background-color: #e7e5dc; width: auto; overflow: auto; margin: 1em 0 !important; padding-top: 1px; font-family: courier new,courier;"&gt;&lt;OL start="1" style="list-style: decimal; background-color: #fff; margin: 0 0 1px 3.5em !important; padding: 0; color: #5c5c5c;"&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'('&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'[^&amp;lt;]*'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'[^&amp;lt;]*'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;')'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'$1'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textView design="EMPHASIZED" text="Attribute"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;REPLACE&lt;/SPAN&gt; REGEX lv_regex&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IN&lt;/SPAN&gt; lv &lt;SPAN style="color: #0000ff;"&gt;WITH&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 15:12:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-06T15:12:42Z</dc:date>
    <item>
      <title>Modify long (html) string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-long-html-string/m-p/10102227#M1815188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask you for help in the following case. I have done number of trials but did not succeed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to amend long HTML string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically within the string I would like to replace the following part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;#&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;bee:html&amp;gt;&amp;lt;th/&amp;gt;&amp;lt;/bee:html&amp;gt;#&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;#&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 9.5pt; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-size: 8.0pt; color: #575757; font-size: 9.5pt; mso-ansi-language: EN-US; font-family: 'Arial','sans-serif'; text-decoration: underline; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;&amp;lt;htmlb:textView design="EMPHASIZED" text="Attribute"/&amp;gt;#&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 9.5pt; mso-bidi-font-size: 8.0pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e. I need to add the underlined part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone give me some hint how to approach this? As e.g. Replace command does not work due to special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-long-html-string/m-p/10102227#M1815188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-06T12:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify long (html) string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-long-html-string/m-p/10102228#M1815189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regular expression can be used in this case.&lt;/P&gt;&lt;P&gt;Basically we can put regex &lt;STRONG&gt;[^&amp;lt;]*&lt;/STRONG&gt; which means all consecutive characters not equaling &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Try running below code.&lt;/P&gt;&lt;DIV style="background-color: #e7e5dc; width: auto; overflow: auto; margin: 1em 0 !important; padding-top: 1px; font-family: courier new,courier;"&gt;&lt;OL start="1" style="list-style: decimal; background-color: #fff; margin: 0 0 1px 3.5em !important; padding: 0; color: #5c5c5c;"&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'#&amp;nbsp;&amp;nbsp; '&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'('&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'[^&amp;lt;]*'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textViewdesign="EMPHASIZED" text="Subindustry"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'[^&amp;lt;]*'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_regex &lt;SPAN style="color: #4da619;"&gt;')'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_regex.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;DATA&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #0000ff;"&gt;TYPE&lt;/SPAN&gt; string.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'$1'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;th align="left"&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;htmlb:textView design="EMPHASIZED" text="Attribute"/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CONCATENATE&lt;/SPAN&gt; lv_repl &lt;SPAN style="color: #4da619;"&gt;'&amp;lt;bee:html&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/bee:html&amp;gt;'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;INTO&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;REPLACE&lt;/SPAN&gt; REGEX lv_regex&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;IN&lt;/SPAN&gt; lv &lt;SPAN style="color: #0000ff;"&gt;WITH&lt;/SPAN&gt; lv_repl.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #f8f8f8; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;WRITE&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; lv.&lt;/LI&gt;&lt;LI style="list-style: decimal-leading-zero; list-style-position: outside !important; border-left: 3px solid #6CE26C; background-color: #ffffff; color: #5c5c5c; padding: 0 3px 0 10px !important; margin: 0 !important; line-height: 14px;"&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-long-html-string/m-p/10102228#M1815189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-06T15:12:42Z</dc:date>
    </item>
  </channel>
</rss>

