How can i find the position of a character in a string in macrodroid?

Juanbotache

New member
Hey, i was doing a macro but I found a little problem. All. I need is to get the value of the position of a character from a string. I use to do it in python with the method find().
Someone know how to help me pleaseeee??
 

Jacob L

Moderator
Using Regex you can extract a character at a time and use an if statement to increment another variable, until you find the character.
 

Dm114

Active member
Hey, i was doing a macro but I found a little problem. All. I need is to get the value of the position of a character from a string. I use to do it in python with the method find().
Someone know how to help me pleaseeee??
You also could extract all the characters before the one you are looking for. The length of this extracted string gives the position of the searched character.
 
Top