<?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 to delete numbers in brackets from letter- sequences in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681730#M86732</link>
    <description>&lt;P&gt;You could create new column using Regex or Substitute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK";
str2 = "SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER";

Show(Regex(str1, "[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]", "", GLOBALREPLACE));
Show(Regex(str2, "[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]", "", GLOBALREPLACE));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that you want to only keep the letters. You can build it for example by using Recode&lt;/P&gt;
&lt;P&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-1695827659613.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57038i9184E19D20B8E6E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1695827659613.png" alt="jthi_0-1695827659613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and you can use regular expressions with search also&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1695827740130.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57039i03E7D09A2B67014B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1695827740130.png" alt="jthi_1-1695827740130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Better regex is most likely something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK";
str2 = "SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER";

res1 = Regex(str1, "\(.*?\)", "", GLOBALREPLACE);
res2 = Regex(str2, "\(.*?\)", "", GLOBALREPLACE);

show(res1, res2);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Sep 2023 15:59:18 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-09-27T15:59:18Z</dc:date>
    <item>
      <title>How to delete numbers in brackets from letter- sequences</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681709#M86729</link>
      <description>&lt;P&gt;How can I &lt;STRONG&gt;find modified&lt;/STRONG&gt; peptide sequences (e.g.,&amp;nbsp;SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER ) in the Jump table when &lt;STRONG&gt;searching the unmodified sequence&lt;/STRONG&gt; (SYELPDGQVITIGNER)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the search algorithm cannot be modified, is it possible to generate a new column by &lt;STRONG&gt;deleting all number in brackets from the all-letter- sequences&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., entry original column: NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;automatically generating new column&lt;/STRONG&gt; with entry: NLTEEMAGLDETIAK&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:00:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681709#M86729</guid>
      <dc:creator>KarlK</dc:creator>
      <dc:date>2023-09-27T15:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete numbers in brackets from letter- sequences</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681730#M86732</link>
      <description>&lt;P&gt;You could create new column using Regex or Substitute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK";
str2 = "SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER";

Show(Regex(str1, "[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]", "", GLOBALREPLACE));
Show(Regex(str2, "[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]", "", GLOBALREPLACE));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This assumes that you want to only keep the letters. You can build it for example by using Recode&lt;/P&gt;
&lt;P&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-1695827659613.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57038i9184E19D20B8E6E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1695827659613.png" alt="jthi_0-1695827659613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and you can use regular expressions with search also&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1695827740130.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57039i03E7D09A2B67014B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1695827740130.png" alt="jthi_1-1695827740130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Better regex is most likely something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK";
str2 = "SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER";

res1 = Regex(str1, "\(.*?\)", "", GLOBALREPLACE);
res2 = Regex(str2, "\(.*?\)", "", GLOBALREPLACE);

show(res1, res2);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:59:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681730#M86732</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-27T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete numbers in brackets from letter- sequences</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681742#M86733</link>
      <description>&lt;P&gt;You can also use Substitute&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "NLTEE(+.98)LAGLDE(+28.99)T(+10.98)IAK";
str2 = "SYELPDGQV(+.98)I(+10.98)T(-17.03)IGNER";

res1 = Substitute(str1, Items(Get Punctuation Characters(Include Chars("0123456789")), ""), "");
res2 = Substitute(str2, Items(Get Punctuation Characters(Include Chars("0123456789")), ""), "");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or build regex using JMP's text explorer&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1695828368341.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57040i452C2356C26F45A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1695828368341.png" alt="jthi_0-1695828368341.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1695828563370.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57041i28BC288265AE9A98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1695828563370.png" alt="jthi_1-1695828563370.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do note that this will leave them as separate "words" as it is used for Text Explorer, so you have to remove the spaces, this can be done with Search for example&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1695828618171.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57042i9C60FED482A21B69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1695828618171.png" alt="jthi_2-1695828618171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:31:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681742#M86733</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-27T15:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete numbers in brackets from letter- sequences</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681930#M86761</link>
      <description>&lt;P&gt;Thank you very much for your quick and helpful answers&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 13:01:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-numbers-in-brackets-from-letter-sequences/m-p/681930#M86761</guid>
      <dc:creator>KarlK</dc:creator>
      <dc:date>2023-09-28T13:01:25Z</dc:date>
    </item>
  </channel>
</rss>

