<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>regexsearch Question</title><link>https://community.appian.com/discussions/f/user-interface/18219/regexsearch-question</link><description>I have a grid of data and need to search for specific activities associated with the record. I&amp;#39;m using regexSearch looking for terms like: football, baseball, basketball, golf, tennis, etc. The issue i&amp;#39;m seeing is that search terms &amp;quot; foot &amp;quot; and &amp;quot; football</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71666?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:50:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9123d80-05f6-469c-81a1-b8f035e52ca8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you expand on what you mean by &amp;quot;returns the relevant records&amp;quot;?&amp;nbsp; It sounds like you&amp;#39;re referring to this working for query results, which is not what this function is intended to be used for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71665?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:47:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d10b6c10-7742-4bed-af3d-e180cc7c29ec</guid><dc:creator>kirksain</dc:creator><description>&lt;p&gt;Using an online tester, this is the results i would expect to see using regex.&amp;nbsp;&amp;quot;&lt;strong&gt;Ball&lt;/strong&gt;&amp;quot; by itself should return the exact same results as &amp;quot;&lt;strong&gt;Foot&lt;/strong&gt;&amp;quot; does for &amp;quot;&lt;strong&gt;Football&lt;/strong&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;If there is a list of 100 sports enthusiasts and 5 play football, I should return those 5 members searching for &amp;quot;Foot&amp;quot; or &amp;quot;Football&amp;quot;. If 5 additional &lt;span&gt;members&amp;nbsp;&lt;/span&gt;play basketball and I search &amp;quot;ball&amp;quot;, my result set would increase to 10 records, and so on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, &amp;quot;&lt;strong&gt;Foot&lt;/strong&gt;&amp;quot; a partial pattern returns the relevant records, &amp;quot;&lt;strong&gt;ball&lt;/strong&gt;&amp;quot; does not.&lt;/p&gt;
&lt;p&gt;&lt;img height="97" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1580226028907v1.png" width="564" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71664?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:38:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfd7a269-ccb1-4f7d-9de1-878cdef3b65e</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="42645" url="~/discussions/f/user-interface/18219/regexsearch-question/71662"]If it&amp;#39;s not &lt;em&gt;&lt;strong&gt;really&lt;/strong&gt; &lt;/em&gt;regex, why learn regex pattern syntax?[/quote]
&lt;p&gt;I was saying that about the search pattern &amp;quot;ball&amp;quot; -- it returns an exact match when there&amp;#39;s an exact match found in the search string, but the string &amp;quot;ball&amp;quot; is not&amp;nbsp;&lt;em&gt;really&lt;/em&gt; regex as it&amp;#39;s not actually using pattern matching.&amp;nbsp; I wasn&amp;#39;t talking about the function in general.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a little unclear on how you&amp;#39;re attempting to use this to search - are you trying to pair it with a query in some sense?&amp;nbsp; Could you share a bit more of your code?&amp;nbsp; I&amp;#39;m confused as to where the&amp;nbsp;&lt;em&gt;dataSubset&lt;/em&gt;s are coming from, as shown in your screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71662?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:33:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61c024f0-5e25-4d1c-b405-c3b549f747c2</guid><dc:creator>kirksain</dc:creator><description>&lt;p&gt;Using the idea that I need to transform the textbox search string is still failing to return the proper results. If it&amp;#39;s not &lt;em&gt;&lt;strong&gt;really&lt;/strong&gt; &lt;/em&gt;regex, why learn regex pattern syntax?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/SearchPattern.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The textbox with results using &amp;quot;ball&amp;quot; and &amp;quot;foot&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="54" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/SearchString.png" width="576" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/SearchResult.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="59" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/SearchString2.png" width="572" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/SearchResult2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71660?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:18:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6af97756-1a5c-4fa5-a967-4e1a52b6b64b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re attempting to use user-input search terms, then my initial assumption is that you need to transform the user input into something that will work for a regex search pattern.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexsearch(
  pattern: &amp;quot;ball&amp;quot;,
  searchString: &amp;quot;football games are fun&amp;quot;,
  regexFlags: &amp;quot;&amp;quot;
)&lt;/pre&gt;this just returns &amp;quot;ball&amp;quot;, since the regex pattern is not &lt;strong&gt;&lt;em&gt;really&lt;/em&gt; &lt;/strong&gt;regex.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexsearch(
  pattern: &amp;quot;\S*ball\S*&amp;quot;,
  searchString: &amp;quot;some football games are fun&amp;quot;,
  regexFlags: &amp;quot;&amp;quot;
)&lt;/pre&gt;This returns the word &amp;quot;football&amp;quot; (and would also return &amp;quot;basketball&amp;quot; or &amp;quot;ball&amp;quot; or &amp;quot;ballgames&amp;quot; for corresponding inputs) - basically any whole word with &amp;quot;ball&amp;quot; in it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71659?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 15:00:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9f3df1f-8aca-4bd6-95d3-12665ba253a2</guid><dc:creator>kirksain</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;search terms &amp;#39;&lt;/span&gt;&lt;strong&gt;foot&amp;#39;&lt;/strong&gt;&lt;span&gt;&amp;nbsp;and &amp;#39;&lt;/span&gt;&lt;strong&gt;football&amp;#39;&lt;/strong&gt;&lt;span&gt;&amp;quot; from a list of user activities such as tennis, football, golf, basketball, etc. The result should be all records with activities with the relevant search term. Foot and Football returns records that have a football activity.&amp;nbsp;&lt;strong&gt;ball&lt;/strong&gt; returns nothing; it should return foot&lt;strong&gt;ball&lt;/strong&gt;, base&lt;strong&gt;ball&lt;/strong&gt;, basket&lt;strong&gt;ball&lt;/strong&gt;, or volley&lt;strong&gt;ball&lt;/strong&gt;.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71658?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:55:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34b93a6d-a178-4c6e-902f-be577e8ec436</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Mind clarifying a bit as to what your use case is, then?&amp;nbsp; I tried the&amp;nbsp;&lt;em&gt;regexsearch()&lt;/em&gt; function locally just now and found that it works as expected with regex pattern strings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71657?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:53:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4cee413-7bbe-4856-a06a-90fa1ebb5fa5</guid><dc:creator>kirksain</dc:creator><description>&lt;p&gt;Thanks! I&amp;#39;m very familiar with regex, but the Appian functions do not blend well with regex patterns. I can&amp;#39;t&amp;nbsp;ask end users typing regex search patterns into the textbox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: regexsearch Question</title><link>https://community.appian.com/thread/71656?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:43:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec3daabd-e764-4f75-976a-81d2e000f6b7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In general I&amp;#39;d recommend starting out with a Regular Expression tutorial/guide - I found &lt;a href="https://www.vogella.com/tutorials/JavaRegularExpressions/article.html"&gt;this one&lt;/a&gt; pretty helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>