<?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 pattern in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80259#M32014</link>
    <description>&lt;P&gt;Thank you, i've tested the regex but in this case it match also with a column name that contains YES, is correct?&lt;BR /&gt;I can do it in C#? Do you know if there is something already done?&lt;BR /&gt;Is possible to use a LinQ Expression to check it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Jan 2021 15:47:00 GMT</pubDate>
    <dc:creator>VratHimbo</dc:creator>
    <dc:date>2021-01-18T15:47:00Z</dc:date>
    <item>
      <title>Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80253#M32008</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;i've a collection field with dynamic column name but always with ONE row.&lt;BR /&gt;I need to check if this row contains at least one "YES" value.&lt;BR /&gt;I didn't want to loop through each collection, so my idea is to use:&lt;BR /&gt;1) Get collection as CSV (in that case i have one text data item with all values separated by a comma) but now, how can i check if at least one value after comma (,) is YES?&lt;BR /&gt;Can i use a regex pattern?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 11:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80253#M32008</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T11:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80254#M32009</link>
      <description>I think you can use the below&amp;nbsp; Action under Collection Manipulation&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28313.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28443i106B8488C883CC21/image-size/large?v=v2&amp;amp;px=999" role="button" title="28313.png" alt="28313.png" /&gt;&lt;/span&gt;You can put collection name, column name and exact value you wish to search. and there is a flag output which would provide the result if the value exists inside the collection&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harshit Rawat&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80254#M32009</guid>
      <dc:creator>HarshitRawat</dc:creator>
      <dc:date>2021-01-18T14:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80255#M32010</link>
      <description>Thanks &lt;A class="user-content-mention" data-sign="@" data-contactkey="a9834af4-84ec-4dc4-95ec-17938bc33fd6" data-tag-text="@Harshit Rawat" href="https://community.blueprism.com/network/profile?UserKey=a9834af4-84ec-4dc4-95ec-17938bc33fd6" data-itemmentionkey="965c6a5d-3501-4d72-8edd-fd1beff936f9"&gt;@Harshit Rawat&lt;/A&gt;,&lt;BR /&gt;unfortunately, i haven't the same column name, only the values and first row are fixed.&lt;BR /&gt;Like this:&lt;BR /&gt;Column1?? Column2?? Column3?? Column4??&lt;BR /&gt;YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NO&lt;BR /&gt;&lt;BR /&gt;And i need to check if at least one value of the first row is yes. I don't want to use a loop, so i've tried to convert collection to CSV (text) but i don't know how can i check it, with regex or in other way​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80255#M32010</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T14:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80256#M32011</link>
      <description>This should suffice as a regex pattern: \s{0,}\"{0,}YES\"{0,}(,|$)&lt;BR /&gt;&lt;BR /&gt;It ensures the entire cell content is YES, so "YESTERDAY" wouldn't match, and it also discards any leading spaces or if it is surrounded by quotation marks that some CSV formats will throw in there. Keep in mind it'll match if a column is called "YES" as well, so it might be wise to trim the header line off before running this.&lt;BR /&gt;&lt;BR /&gt;Personally, I'd shoot for a more reusable option; you could create an action that takes a collection and searches for any values. With a code stage you'd be able to iterate over all of the fields in the collection and make sure it's a proper match as opposed to a regex search.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80256#M32011</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2021-01-18T15:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80257#M32012</link>
      <description>Hi Vrat,&lt;BR /&gt;As you said you have taken the text into a data item please share your thoughts for the below approach&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28321.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28449i3A7763915654E378/image-size/large?v=v2&amp;amp;px=999" role="button" title="28321.png" alt="28321.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
​The data item contains the text separated by ",". I am just checking if either ",YES" or "YES," are present in the data item . IF the Decision yields Yes this means the text data item contains your value.&lt;BR /&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/608"&gt;@VratHimbo&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harshit Rawat&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80257#M32012</guid>
      <dc:creator>HarshitRawat</dc:creator>
      <dc:date>2021-01-18T15:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80258#M32013</link>
      <description>Thanks for your solution.&lt;BR /&gt;The only problem is if i have a column with the name starts with YES.&lt;BR /&gt;For example Column1??,YES+*Column2,NO,NO,NO&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80258#M32013</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T15:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80259#M32014</link>
      <description>&lt;P&gt;Thank you, i've tested the regex but in this case it match also with a column name that contains YES, is correct?&lt;BR /&gt;I can do it in C#? Do you know if there is something already done?&lt;BR /&gt;Is possible to use a LinQ Expression to check it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 15:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80259#M32014</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T15:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80260#M32015</link>
      <description>Can use C# and Linq. If you use Linq in a code stage, make sure to add a reference to System.Linq.dll and the System.Linq namespace in the global object code. Since collections are a DataTable in a code stage, you'll have to call AsEnumerable() on it to be able to use it in a Linq expression, for example:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;found = table.AsEnumerable().Any(row =&amp;gt; {
	foreach (DataColumn col in table.Columns) {
		if (row[col].ToString() == valueToFind) {
			return true;
		}
	}
	return false;
});​&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80260#M32015</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2021-01-18T16:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80261#M32016</link>
      <description>Thanks for the reply.&lt;BR /&gt;I put in input Datatable &amp;amp; ValueToFInd (text), a boolean in output, imported &lt;SPAN&gt;&lt;SPAN&gt;System.Linq.dll and the System.Linq. And i've imported system.data.datasetextensions. But i've this problem. How can i fix it? Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28325.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28453i5500DC7EBA4ADDDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="28325.png" alt="28325.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80261#M32016</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T16:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80262#M32017</link>
      <description>I've imported System.core.dll and now it seems to work, is that correct? &lt;A class="user-content-mention" data-sign="@" data-contactkey="e42d12b2-a3f6-4f36-a821-9db8ee48b837" data-tag-text="@Nicholas Zejdlik" href="https://community.blueprism.com/network/profile?UserKey=e42d12b2-a3f6-4f36-a821-9db8ee48b837" data-itemmentionkey="cbc1f108-001b-4106-aa70-bf4a2de09b7e"&gt;@Nicholas Zejdlik&lt;/A&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80262#M32017</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-01-18T17:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Regex pattern</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80263#M32018</link>
      <description>Aye, that would do it. Whenever you use C# you'll want to add the System.Core.dll reference.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Regex-pattern/m-p/80263#M32018</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2021-01-18T17:21:00Z</dc:date>
    </item>
  </channel>
</rss>

