11-03-2021 12:49 PM
any help how can i find the number of times the letter "a" appears in the string what function i have to use. Thank you
11-03-2021 01:04 PM
Hi jiji,
@jiji_830 wrote:
how can i find the number of times the letter "a" appears in the string
Have you already opened the string functions palette? Have you tried any of those functions?
I would use a function which is able to replace a char and provide an output of the number of replacements…
11-03-2021 02:54 PM
this my attempt but I couldn't figure it out
11-03-2021 03:41 PM
11-03-2021 04:07 PM
You've got your wires connected wrong. How to find it yourself:
Move those top 2 string wires up one.
11-03-2021 07:00 PM
hi
i attached a new example just to learn how to figure it out it is with old version i try with search replace string but not work. i enter 4 letter e in the string control but the indicator show 1. Thank u
11-03-2021 07:41 PM
@jiji_830 wrote:
hi
i attached a new example just to learn how to figure it out it is with old version i try with search replace string but not work. i enter 4 letter e in the string control but the indicator show 1. Thank u
Pay attention to your wiring. You've got the TRUE constant wired to the wrong input. If should be wired to "replace all"
11-03-2021 08:35 PM
thank u so much. if we want to generate the number of the words in the string we use same function ??
11-04-2021 02:42 AM
@jiji_830 wrote:
thank u so much. if we want to generate the number of the words in the string we use same function ??
That should work, yes. Space is a good word separator to look for. 😉
11-04-2021 07:32 AM
@jiji_830 wrote:
thank u so much. if we want to generate the number of the words in the string we use same function ??
Yes, but simply searching for spaces won't work because it won't handle multiple spaces and it ignores other whitespace and it would be confused by leading/trailing whitespace. Use this:
Note: Right-click on the "Search and Replace String" function to toggle "Regular Expression" mode,