<?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 How do I do this with Regex substitution? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-do-this-with-Regex-substitution/m-p/808495#M98801</link>
    <description>&lt;P&gt;Only the content between [] is reserved, and even [] is not reserved.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path="C:/Users/Administrator/AppData/Local/Apps/4.6.1.10576/Resources/Font/SystemFont/zh-hans.ttf"&amp;gt;&amp;lt;color=(1.000000, 1.000000, 1.000000, 1.000000)&amp;gt;&amp;lt;size=5.000000&amp;gt;[ABCDD]&amp;lt;/size&amp;gt;&amp;lt;/color&amp;gt;&amp;lt;/font&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to write it this way, but there's still [&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt = Regex( txt, "(.[^[]{0,})\[(.[^]]{0,})]\(.{0,})", "\2", globalreplace );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ABCDD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Oct 2024 11:54:20 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-10-27T11:54:20Z</dc:date>
    <item>
      <title>How do I do this with Regex substitution?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-do-this-with-Regex-substitution/m-p/808495#M98801</link>
      <description>&lt;P&gt;Only the content between [] is reserved, and even [] is not reserved.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path="C:/Users/Administrator/AppData/Local/Apps/4.6.1.10576/Resources/Font/SystemFont/zh-hans.ttf"&amp;gt;&amp;lt;color=(1.000000, 1.000000, 1.000000, 1.000000)&amp;gt;&amp;lt;size=5.000000&amp;gt;[ABCDD]&amp;lt;/size&amp;gt;&amp;lt;/color&amp;gt;&amp;lt;/font&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to write it this way, but there's still [&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt = Regex( txt, "(.[^[]{0,})\[(.[^]]{0,})]\(.{0,})", "\2", globalreplace );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ABCDD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 11:54:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-do-this-with-Regex-substitution/m-p/808495#M98801</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-10-27T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I do this with Regex substitution?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-do-this-with-Regex-substitution/m-p/808507#M98802</link>
      <description>&lt;P&gt;What are you trying to achieve?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wish to extract values inside square brackets is it necessary to use substitution?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;txt = Regex(str, "\[\[(.+)\]]\", "\1");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or even simpler (and in my opinion) preferred way in JMP&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word(2, str, "[]");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Oct 2024 13:51:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-do-this-with-Regex-substitution/m-p/808507#M98802</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-27T13:51:00Z</dc:date>
    </item>
  </channel>
</rss>

