<?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: Count number of occurrences of a character in a string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Count-number-of-occurrences-of-a-character-in-a-string/m-p/538871#M75994</link>
    <description>&lt;P&gt;Below formula actually works perfect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Length( :Name( "Col1" ) ) - Length( Substitute( :Name( "Col1" ), "A", "" ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Aug 2022 16:51:12 GMT</pubDate>
    <dc:creator>psundar6</dc:creator>
    <dc:date>2022-08-31T16:51:12Z</dc:date>
    <item>
      <title>Count number of occurrences of a character in a string</title>
      <link>https://community.jmp.com/t5/Discussions/Count-number-of-occurrences-of-a-character-in-a-string/m-p/538862#M75993</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to count the number of occurrences of a character in a string. How do I achieve that using JSL?&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;Number of occurrences of letter 'A' in the below strings&lt;/P&gt;&lt;P&gt;APPLE -&amp;gt; 1&lt;/P&gt;&lt;P&gt;PEARS -&amp;gt; 1&lt;/P&gt;&lt;P&gt;BANANA -&amp;gt; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-number-of-occurrences-of-a-character-in-a-string/m-p/538862#M75993</guid>
      <dc:creator>psundar6</dc:creator>
      <dc:date>2023-06-10T23:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of occurrences of a character in a string</title>
      <link>https://community.jmp.com/t5/Discussions/Count-number-of-occurrences-of-a-character-in-a-string/m-p/538871#M75994</link>
      <description>&lt;P&gt;Below formula actually works perfect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Length( :Name( "Col1" ) ) - Length( Substitute( :Name( "Col1" ), "A", "" ) )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 16:51:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Count-number-of-occurrences-of-a-character-in-a-string/m-p/538871#M75994</guid>
      <dc:creator>psundar6</dc:creator>
      <dc:date>2022-08-31T16:51:12Z</dc:date>
    </item>
  </channel>
</rss>

