Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Count number of occurrances in a string

New Here ,
Jun 13, 2008 Jun 13, 2008
Say I have a string "update insert drop drop" and I want to count how many times "drop" is in the string. What's the best way to go about doing this?
271
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 13, 2008 Jun 13, 2008
LATEST
Here's one way:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources