Hi,
how can I count the spaces in a string
and store the result in a macrodroid integer variable?
Input string:
myString = "alfa bravo charly delta echo foxtrott"
With the macrodroid magic string
{strlen=myString}
it is possible to get the string length.
Here is an example (macrodroid local variable "spaceINT"):
myString = "alfa bravo charly delta echo foxtrott"
spaceINT = {strlen=myString}
I'm experimenting with the macrodroid WHILE / DO loop and the "Text Manipulation"---> "substring".
The code will be ~12 lines long (I use an action block). -Since the code won't be ready for a few days,
I'm looking for a way to do it with regex.
How to do it e.g. with regex?
how can I count the spaces in a string
and store the result in a macrodroid integer variable?
Input string:
myString = "alfa bravo charly delta echo foxtrott"
With the macrodroid magic string
{strlen=myString}
it is possible to get the string length.
Here is an example (macrodroid local variable "spaceINT"):
myString = "alfa bravo charly delta echo foxtrott"
spaceINT = {strlen=myString}
I'm experimenting with the macrodroid WHILE / DO loop and the "Text Manipulation"---> "substring".
The code will be ~12 lines long (I use an action block). -Since the code won't be ready for a few days,
I'm looking for a way to do it with regex.
How to do it e.g. with regex?