Hy Guys,
Does Anybody know how to check if a Text (string) contains particular Words (strings)?
For exmple I have a Text:
Dear ,
We are happy to inform you that you got in .
I have to change the Words where you can see <…> this.
My actual text is much longer and I have to replace like 100 words with other words which are saved in another string.
Thanks for your help
hi
welcome to UiPath community
we can use CONTAINS method from string class
like this yourstringvariable.ToString.Contains(“your text to be found”)
which will give us boolean value as output
but
i didnt get this
and what if my string is a list of numbers (“1 12 35 36 37 90 92”)
and I’m getting one of this options, like i will get “3” won’t it show that its exist (in the 35, the first one that shows 3)?