<?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: Regex Crash problem in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94657#M44066</link>
    <description>Morning&amp;nbsp;Zdeněk,&lt;BR /&gt;&lt;BR /&gt;Thank you for the tests, I found out that the regex pattern wasn't well implemented.&lt;BR /&gt;If you try to test the following strings, no quotes not mandatory, BP crashes.... &lt;BR /&gt;The reason why is the regex pattern creates a loop that never stops because the Z pattern is never found. (regex101.com,&amp;nbsp;&lt;SPAN&gt;catastrophic backtracking)&lt;/SPAN&gt;&lt;BR /&gt;It happens when the comment is too long and the z value (3) is incorporated in the comment "&lt;SPAN&gt;PANEL 123MM SPRAY PAINTED"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;"1212341234&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;5&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;PANEL 123MM SPRAY PAINTED&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;2"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;So I want this instead:&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;"1212341234 5 PANEL 123MM YELLOW-GRAY PATTERN 3 2"&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;The red spaces are mandatory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Anyway the solution is the following "(?&amp;lt;X&amp;gt;\d{10})( |\n)(?&amp;lt;Y&amp;gt;\d{1,4})( |\n).*( |\n)(?&amp;lt;Z&amp;gt;\d{1,4})( |\n)(?&amp;lt;K&amp;gt;\d{1,4})" if nothing found the pdf is rejected.&amp;nbsp;&lt;BR /&gt;So, I think that some checks needs to be implemented in order to manage this unlucky cases in a future update.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Luigimaria&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Mar 2020 10:52:00 GMT</pubDate>
    <dc:creator>LuigimariaCerto</dc:creator>
    <dc:date>2020-03-18T10:52:00Z</dc:date>
    <item>
      <title>Regex Crash problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94654#M44063</link>
      <description>Good Morning,&lt;BR /&gt;&lt;BR /&gt;I'm developing a process that extract from a pdf multiple values.&lt;BR /&gt;I extract this values using Utility - Strings (BP v. 6.6.0.15260) supported by the "function" Extract Regex Values.&amp;nbsp;&lt;BR /&gt;Every time I execute this block BP platform stays in waiting forever and I have to close it with taskmng.&lt;BR /&gt;The same problem with AVOX.Regex (Digital Exchange) only when I extract multiple Regex Values.&lt;BR /&gt;&lt;BR /&gt;The regex pattern:&amp;nbsp;(?&amp;lt;X&amp;gt;\d{10})( |\n)(?&amp;lt;Y&amp;gt;\d{1,4})( |\n)((\w{1,8}|\d{1,8}|(:|,|.| |:.))*)*( |\n)(?&amp;lt;Z&amp;gt;\d{1,4})( |\n)(?&amp;lt;K&amp;gt;\d{1,4})"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a solution to my problem?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;EM&gt;Community&lt;/EM&gt;!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Luigimaria&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94654#M44063</guid>
      <dc:creator>LuigimariaCerto</dc:creator>
      <dc:date>2020-03-17T15:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex Crash problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94655#M44064</link>
      <description>Hi, Luigimaria,&lt;BR /&gt;&lt;BR /&gt;can you provide string which should return something? I am using 6.4.2 and it does not hang. I am using NEOOPS Regex VBO but I doubt it would be different from AVO or BP. I will shortly install 6.6 and let you know the results but it would help to get some string which is returning some value after applying regular expression.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Mar 2020 08:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94655#M44064</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-03-18T08:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex Crash problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94656#M44065</link>
      <description>Hi, Luigimaria,&lt;BR /&gt;&lt;BR /&gt;I tested it on 6.6 and it works - I mean it does not hang but it does not return any data as I don't want to reverse engineer what the regex is supposed to return ;). If you provide me the input string which contains the correct value I can test it for you.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Mar 2020 10:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94656#M44065</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2020-03-18T10:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex Crash problem</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94657#M44066</link>
      <description>Morning&amp;nbsp;Zdeněk,&lt;BR /&gt;&lt;BR /&gt;Thank you for the tests, I found out that the regex pattern wasn't well implemented.&lt;BR /&gt;If you try to test the following strings, no quotes not mandatory, BP crashes.... &lt;BR /&gt;The reason why is the regex pattern creates a loop that never stops because the Z pattern is never found. (regex101.com,&amp;nbsp;&lt;SPAN&gt;catastrophic backtracking)&lt;/SPAN&gt;&lt;BR /&gt;It happens when the comment is too long and the z value (3) is incorporated in the comment "&lt;SPAN&gt;PANEL 123MM SPRAY PAINTED"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;"1212341234&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;5&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;PANEL 123MM SPRAY PAINTED&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;2"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;So I want this instead:&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;"1212341234 5 PANEL 123MM YELLOW-GRAY PATTERN 3 2"&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;The red spaces are mandatory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Anyway the solution is the following "(?&amp;lt;X&amp;gt;\d{10})( |\n)(?&amp;lt;Y&amp;gt;\d{1,4})( |\n).*( |\n)(?&amp;lt;Z&amp;gt;\d{1,4})( |\n)(?&amp;lt;K&amp;gt;\d{1,4})" if nothing found the pdf is rejected.&amp;nbsp;&lt;BR /&gt;So, I think that some checks needs to be implemented in order to manage this unlucky cases in a future update.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Luigimaria&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Mar 2020 10:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-Crash-problem/m-p/94657#M44066</guid>
      <dc:creator>LuigimariaCerto</dc:creator>
      <dc:date>2020-03-18T10:52:00Z</dc:date>
    </item>
  </channel>
</rss>

