-
Count the number of characters up until the second incident of a specific char.
Let’s assume I have this text: “THIS IS MY EXAMPLE TEXT.”
I want to count the number of characters until the text reaches the second incident of a space. E.g. up to the second space, there are 6 characters in the text.
I want to use a slider to specify the number of spaces and then use the amount of characters to create a substring.