Extract a word containing "?" in it from a sentence

I extracted a dynamic sentence from screen using OCR get text, stored it in a string variable, split it into words array. One of those words contains “?”. I want to get this word to pass it on to next step. I m using For each activity to find it from word array but not sure of the syntex.

Can someone please help?

1 Like

Hi @Gaurav1
Use Find element and get text with anchor base activity

1 Like

@Gaurav1 - You can use String.Contains method on each word to find if it contains the “?”.


1 Like

Solved using indexOf. thanks for you replies.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.