<?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: How can I make Eval Insert ignore the ^ character ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964071#M110354</link>
    <description>&lt;P&gt;Use different character than ^. I usually use ¤.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
Eval Insert("Today is ¤As Date(Today())¤", "¤");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/19.1/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5012454" target="_blank" rel="noopener"&gt;Eval Insert(string, &amp;lt;startDel&amp;gt;, &amp;lt;endDel&amp;gt;, &amp;lt; &amp;lt;&amp;lt;Use Locale(1) &amp;gt;)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1786556100491.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/112757iCE062D8E2E2323CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1786556100491.png" alt="jthi_0-1786556100491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2026 17:35:42 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-08-12T17:35:42Z</dc:date>
    <item>
      <title>How can I make Eval Insert ignore the ^ character ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964056#M110353</link>
      <description>&lt;P&gt;I have a situation where I need to build a string that will be passed to an external program. I need to use Eval Insert in building the string but the string also needs to contain a RegEx which includes the ^ character.&lt;/P&gt;
&lt;P&gt;I am struggling to get JMP ( Version 19.1.4) to ignore that character in the Eval Insert call. Here is a sample :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Str_To_Eval = "Insert_Str";
str = "This is a String containing ^Str_To_Eval^ and it also contains this regex : ^(?!.*_).*";
eval insert(str)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This fails with the error :&lt;/P&gt;
&lt;P&gt;Unexpected "?". Perhaps there is a missing ")".&lt;BR /&gt;Line 1 Column 37: (?!.*_).*►&lt;/P&gt;
&lt;P&gt;Prefixing the ^ character with \! does not help. Neither does wrapping it in \[ ..]\&lt;/P&gt;
&lt;P&gt;I can solve it like this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Str_To_Eval = "Insert_Str";
RegExFragment = "^";
str = "This is a String containing ^Str_To_Eval^ and it also contains this regex : ^RegExFragment^(?!.*_).*";
eval insert(str);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;which gives the output I want.&lt;/P&gt;
&lt;P&gt;I was curious if there's any other way to escape a ^ character so that Eval Insert() would ignore it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2026 16:56:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964056#M110353</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2026-08-12T16:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make Eval Insert ignore the ^ character ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964071#M110354</link>
      <description>&lt;P&gt;Use different character than ^. I usually use ¤.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
Eval Insert("Today is ¤As Date(Today())¤", "¤");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/19.1/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5012454" target="_blank" rel="noopener"&gt;Eval Insert(string, &amp;lt;startDel&amp;gt;, &amp;lt;endDel&amp;gt;, &amp;lt; &amp;lt;&amp;lt;Use Locale(1) &amp;gt;)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1786556100491.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/112757iCE062D8E2E2323CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1786556100491.png" alt="jthi_0-1786556100491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2026 17:35:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964071#M110354</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-08-12T17:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make Eval Insert ignore the ^ character ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964086#M110355</link>
      <description>&lt;P&gt;Thanks ! I can't believe I've been using JMP for ~ 2 decades and never realized Eval Insert() had an optional argument to specify the delimiter ! Sometimes it pays to read the manual :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2026 19:26:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-make-Eval-Insert-ignore-the-character/m-p/964086#M110355</guid>
      <dc:creator>tsl</dc:creator>
      <dc:date>2026-08-12T19:26:21Z</dc:date>
    </item>
  </channel>
</rss>

