Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Instr to count occurrences
#1
Is there, or could there be, a function that returns the number of occurrences of a character (or substring) in a string?
Like Instr, but instead of position, returns the times the substring occurs.
I know we can use Instr with a position number to repeat the search, but can we do this in a simpler way?
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
Instr to count occurrences - by PhilOfPerth - 04-29-2025, 01:35 AM
RE: Instr to count occurrences - by bplus - 04-29-2025, 02:10 AM
RE: Instr to count occurrences - by PhilOfPerth - 04-29-2025, 02:21 AM
RE: Instr to count occurrences - by SMcNeill - 04-29-2025, 02:52 AM
RE: Instr to count occurrences - by mdijkens - 04-29-2025, 05:09 PM
RE: Instr to count occurrences - by TempodiBasic - 04-29-2025, 11:17 PM



Users browsing this thread: 2 Guest(s)