Count Text
From UBot Studio
This function is an Advanced Text function in the UBot Extended Library. This function will count the number of times a substring appears in text.
Text to search in: The text the substring is being counted in.
Text to search for: The substring being counted
Example
set(#sampletext,"Want to use UBot Studio or UBot Studio bots, but don’t want them running on your Windows machine or don’t have a Windows machine?","Global") alert($count text(#sampletext,"Windows"))
Running the script will count how many times the word "Windows" appears in the sentence provided in the variable.
According to the function, the word "Windows" appears in the sentence 2 times.