Hi all,
I guess the Topic name is a little confusing but let me describe my problem:
I Am currently building an attended search Robot.
The User can Enter any String they want containing conectors “AND” “OR” “NOT”
based on the position and value of the Conector in the string for example:
Apples AND Tomatos OR Cucumbers NOT Bread
i want to identify what is the connector and wehre it´s position is and based on this the Robot should move on going different paths.
i tried using the .contain function:
Mystr.contains(“AND”)
but i am not able to determine the of the conector
I am rather new to the RPA so i am not really aware if there is even a better option for this problem.
Could work around with a select function
I found a different forum entry mentoning this for Selecting Words in capital letters with 3 characters:
Use System.Text.RegularExpressions.Regex.Matches(MyStr, "[A-Z]{3}")
, where MyStr
is the string on which you’re searching.
could you rewrite this function to something like: System.Text.RegularExpressions.Regex.Matches(MyStr, “AND”, “OR”, “NOT”)` assign every item to an array and based on the items value continue?
Thank you for your help