<?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 How to replace ALL matched sub strings with RegExpReplace? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807424#M3703</link>
    <description>Hi,&lt;BR /&gt;There is 'const char* pOptions' parameter in the function ippsRegExpInitAlloc. You can change search strategy by passing combination of 'i', 's', 'm', 'x', 'g' characters. By default first matched substring will be replaced. Please set in to the 'g'. 'g'is global search. That means all matched substrings will be replaced.&lt;BR /&gt;&lt;BR /&gt;Igor S. Belyakov</description>
    <pubDate>Thu, 14 Oct 2010 11:06:40 GMT</pubDate>
    <dc:creator>Igor_B_Intel1</dc:creator>
    <dc:date>2010-10-14T11:06:40Z</dc:date>
    <item>
      <title>How to replace ALL matched sub strings with RegExpReplace?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807423#M3702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using ippsRegExpReplace_8u() to replace matched sub strings, but didn't find a way to replace *ALL* the matched sub strings. Following is an example.&lt;BR /&gt;&lt;BR /&gt;regex: [BD]&lt;BR /&gt;src string: ABCDE&lt;BR /&gt;replacement: ##&lt;BR /&gt;wanted dist string: A##C##E&lt;BR /&gt;actual dist string: A##&lt;BR /&gt;&lt;BR /&gt;How to write regex and replacement to get my wanted dist string? Or IPP just doesn't support that?&lt;BR /&gt;&lt;BR /&gt;What's more, even IPP only supports replacing the first occurrence of the matched sub strings, I would expect the dist string to be "A##CDE"...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Evan</description>
      <pubDate>Wed, 13 Oct 2010 10:13:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807423#M3702</guid>
      <dc:creator>evanyan</dc:creator>
      <dc:date>2010-10-13T10:13:56Z</dc:date>
    </item>
    <item>
      <title>How to replace ALL matched sub strings with RegExpReplace?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807424#M3703</link>
      <description>Hi,&lt;BR /&gt;There is 'const char* pOptions' parameter in the function ippsRegExpInitAlloc. You can change search strategy by passing combination of 'i', 's', 'm', 'x', 'g' characters. By default first matched substring will be replaced. Please set in to the 'g'. 'g'is global search. That means all matched substrings will be replaced.&lt;BR /&gt;&lt;BR /&gt;Igor S. Belyakov</description>
      <pubDate>Thu, 14 Oct 2010 11:06:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807424#M3703</guid>
      <dc:creator>Igor_B_Intel1</dc:creator>
      <dc:date>2010-10-14T11:06:40Z</dc:date>
    </item>
    <item>
      <title>How to replace ALL matched sub strings with RegExpReplace?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807425#M3704</link>
      <description>Thanks, it works.&lt;BR /&gt;&lt;BR /&gt;-Evan</description>
      <pubDate>Fri, 15 Oct 2010 06:58:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807425#M3704</guid>
      <dc:creator>evanyan</dc:creator>
      <dc:date>2010-10-15T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Quote:Igor Belyakov (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807426#M3705</link>
      <description>&lt;BLOCKQUOTE&gt;Igor Belyakov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;BR /&gt;There is 'const char* pOptions' parameter in the function ippsRegExpInitAlloc. You can change search strategy by passing combination of 'i', 's', 'm', 'x', 'g' characters. By default first matched substring will be replaced. Please set in to the 'g'. 'g'is global search. That means all matched substrings will be replaced.&lt;/P&gt;
&lt;P&gt;Igor S. Belyakov&lt;/P&gt;&lt;/BLOCKQUOTE&gt;

 So please update the documentation because its othewise denoted:
"All found matches are replaced according to the replacement pattern that is stored in the structure pReplaceState."</description>
      <pubDate>Fri, 09 Nov 2012 11:27:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-replace-ALL-matched-sub-strings-with-RegExpReplace/m-p/807426#M3705</guid>
      <dc:creator>christian_s_7</dc:creator>
      <dc:date>2012-11-09T11:27:17Z</dc:date>
    </item>
  </channel>
</rss>

