<?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: JSL Regex matching square brackets [ ] in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Regex-matching-square-brackets/m-p/845291#M101995</link>
    <description>&lt;P&gt;You need to do some extra escaping for the opening&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;str = "i am {name} [age]";
reg = Regex(str, "\!\[\w+\]");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.1/jmp/jsl-syntax-rules.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.1/jmp/jsl-syntax-rules.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Some explanation here &lt;LI-MESSAGE title="How do you replace square brackets &amp;amp;quot;[&amp;amp;quot; &amp;amp;quot;]&amp;amp;quot; in a string with Regex?" uid="263954" url="https://community.jmp.com/t5/Discussions/How-do-you-replace-square-brackets-quot-quot-quot-quot-in-a/m-p/263954#U263954" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;(&lt;EM&gt;JMP strings make a special case of \[ and ]\ anywhere in a JMP string to turn off JMP's escaping.&lt;/EM&gt;)&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 16:56:44 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-03-03T16:56:44Z</dc:date>
    <item>
      <title>JSL Regex matching square brackets [ ]</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Regex-matching-square-brackets/m-p/845279#M101994</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ithomasja_0-1741020356758.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73503iCAB712E19F5F43E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ithomasja_0-1741020356758.png" alt="ithomasja_0-1741020356758.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\[ doesnt seem to go well within quotes.. Is there a solution here?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 16:46:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Regex-matching-square-brackets/m-p/845279#M101994</guid>
      <dc:creator>ithomasja</dc:creator>
      <dc:date>2025-03-03T16:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Regex matching square brackets [ ]</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Regex-matching-square-brackets/m-p/845291#M101995</link>
      <description>&lt;P&gt;You need to do some extra escaping for the opening&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;str = "i am {name} [age]";
reg = Regex(str, "\!\[\w+\]");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.1/jmp/jsl-syntax-rules.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.1/jmp/jsl-syntax-rules.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: Some explanation here &lt;LI-MESSAGE title="How do you replace square brackets &amp;amp;quot;[&amp;amp;quot; &amp;amp;quot;]&amp;amp;quot; in a string with Regex?" uid="263954" url="https://community.jmp.com/t5/Discussions/How-do-you-replace-square-brackets-quot-quot-quot-quot-in-a/m-p/263954#U263954" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;(&lt;EM&gt;JMP strings make a special case of \[ and ]\ anywhere in a JMP string to turn off JMP's escaping.&lt;/EM&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 16:56:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Regex-matching-square-brackets/m-p/845291#M101995</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-03T16:56:44Z</dc:date>
    </item>
  </channel>
</rss>

