<?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 split string at comma, ignoring quotation marks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-at-comma-ignoring-quotation-marks/m-p/9060878#M1702647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got a string of format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 'b,c,"1,234.0",d,"56,789.54",g'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need is something similar to below&lt;/P&gt;&lt;P&gt;an internal table with each data as a line item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;1234.0&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;56789.54&lt;/P&gt;&lt;P&gt;g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; a string like&lt;/P&gt;&lt;P&gt;a = 'b,c,"1234.0",d,56789.54,g'&amp;nbsp; is good.so that i can split based on comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I cant split this based on comma &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;.as it will split 1,234.0 into 1 and 234.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in general i want to delete comma which comes between "" in a string.and there can be multiple such "" in a single string&lt;/P&gt;&lt;P&gt;Please help &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 05:31:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-28T05:31:21Z</dc:date>
    <item>
      <title>split string at comma, ignoring quotation marks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-at-comma-ignoring-quotation-marks/m-p/9060878#M1702647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have got a string of format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = 'b,c,"1,234.0",d,"56,789.54",g'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i need is something similar to below&lt;/P&gt;&lt;P&gt;an internal table with each data as a line item&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;1234.0&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;56789.54&lt;/P&gt;&lt;P&gt;g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; a string like&lt;/P&gt;&lt;P&gt;a = 'b,c,"1234.0",d,56789.54,g'&amp;nbsp; is good.so that i can split based on comma&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I cant split this based on comma &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;.as it will split 1,234.0 into 1 and 234.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in general i want to delete comma which comes between "" in a string.and there can be multiple such "" in a single string&lt;/P&gt;&lt;P&gt;Please help &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1011/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 05:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-at-comma-ignoring-quotation-marks/m-p/9060878#M1702647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-28T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: split string at comma, ignoring quotation marks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-at-comma-ignoring-quotation-marks/m-p/9060879#M1702648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;check below logic once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;data &lt;/SPAN&gt;: a(30) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;data &lt;/SPAN&gt;: b(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h(8) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;data &lt;/SPAN&gt;: x(10) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y(10) &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;type &lt;/SPAN&gt;c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;a = &lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'b,c,"1,234.0",d,"56,789.54",g' &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;split &lt;/SPAN&gt;a &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;at &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;'"' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;b &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;x &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;c &lt;/SPAN&gt;y d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;split &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;x &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;at &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;',' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;e f.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;split &lt;/SPAN&gt;y &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;at &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;',' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;g h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;clear &lt;/SPAN&gt;: x,y,a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;concatenate &lt;/SPAN&gt;e f &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;x.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;concatenate &lt;/SPAN&gt;g h &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;y.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;concatenate &lt;/SPAN&gt;b &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;x &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;c &lt;/SPAN&gt;y d &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;clear &lt;/SPAN&gt;: b,c,d,e,f,g,h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;split &lt;/SPAN&gt;a &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;at &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-style: inherit; font-family: inherit;"&gt;',' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;into &lt;/SPAN&gt;b &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;c &lt;/SPAN&gt;d e f g h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;write &lt;/SPAN&gt;: / b, / c, / d,/ e,/ f,/ g,/ h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;out put:&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; b&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; b&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; 1234.0&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; d&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; 56789.54&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&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; g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Hope this code solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;BALAJI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 06:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-at-comma-ignoring-quotation-marks/m-p/9060879#M1702648</guid>
      <dc:creator>former_member392866</dc:creator>
      <dc:date>2012-09-28T06:27:06Z</dc:date>
    </item>
  </channel>
</rss>

