<?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: disable singleline option in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687633#M87324</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hoped the answer would be different. Interesting ...&lt;BR /&gt;&lt;BR /&gt;Hm, here is the wish to fix it:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Regex: add options for all flags" uid="687607" url="https://community.jmp.com/t5/JMP-Wish-List/Regex-add-options-for-all-flags/m-p/687607#U687607" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 14:58:22 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-10-16T14:58:22Z</dc:date>
    <item>
      <title>Regex: disable singleline option</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687570#M87321</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;How do I have to adjust a Regex search such that it just finds "&lt;FONT face="courier new,courier"&gt;bc&lt;/FONT&gt;" in the first line?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to Regex web test pages(&amp;nbsp;&lt;A href="https://regex101.com/" target="_blank" rel="noopener"&gt;https://regex101.com/&amp;nbsp;&lt;/A&gt;&lt;A href="https://regexr.com/" target="_blank" rel="noopener"&gt;, https://regexr.com/&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;the regex expression "\A.*bc" should find "bc" in the first line - and ignore &lt;FONT face="courier new,courier"&gt;bc&lt;/FONT&gt; in the second line:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1697456290910.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57666iA08895833204DD02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1697456290910.png" alt="hogi_0-1697456290910.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1697456819242.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57667iB1FC5B38390EA7CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1697456819242.png" alt="hogi_1-1697456819242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Jmp with&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Regex(
"abcdef&lt;BR /&gt;nghibcjk",
	"\A.*bc"
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1697456878288.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57668i737E65C9138B1798/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1697456878288.png" alt="hogi_2-1697456878288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... which corresponds to Regex with additional option&lt;FONT face="courier new,courier"&gt; /s&lt;/FONT&gt; (singleline):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1697457005608.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57669iAF4ACC78C47EBAD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1697457005608.png" alt="hogi_3-1697457005608.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I disable the singleline option?&lt;/P&gt;&lt;P&gt;I just found options for&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1697457079992.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57670iF76D2C3EE5FE5B64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1697457079992.png" alt="hogi_4-1697457079992.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.. .and for the greedy option&amp;nbsp; which can be disabled by using&lt;FONT face="courier new,courier"&gt; .*?&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;.*.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 12:03:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687570#M87321</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-16T12:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: disable singleline option</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687604#M87323</link>
      <description>&lt;P&gt;I don't think JMP's Regex() function supports any (general) regex flags outside of IGNORECAS (I think g, i, m and s are the most useful flags (&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags" target="_blank" rel="noopener"&gt;Advanced searching with flags (mozilla.org)&lt;/A&gt;). I have made wish list item regarding global search, though it was hastily done and was just for Regex Match&amp;nbsp;&lt;LI-MESSAGE title="Add flag to Regex Match() to find all non-overlapping occurances of pattern" uid="582080" url="https://community.jmp.com/t5/JMP-Wish-List/Add-flag-to-Regex-Match-to-find-all-non-overlapping-occurances/m-p/582080#U582080" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;. Luckily these are fairly easy to workaround most of the time.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 12:29:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687604#M87323</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-16T12:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: disable singleline option</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687633#M87324</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I hoped the answer would be different. Interesting ...&lt;BR /&gt;&lt;BR /&gt;Hm, here is the wish to fix it:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Regex: add options for all flags" uid="687607" url="https://community.jmp.com/t5/JMP-Wish-List/Regex-add-options-for-all-flags/m-p/687607#U687607" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 14:58:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-disable-singleline-option/m-p/687633#M87324</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-16T14:58:22Z</dc:date>
    </item>
  </channel>
</rss>

