Regular expression

Hi ,

I would like to branch on variable ‘a’ if ‘a’ contains whole string “following has been assigned”.
How can I achieve this.
Please suggest.



Contains can be checked using //.
Ex. %a% == /following has been assigned/

Thank you.

Yes, that’s how regex work. It will match not only whole string, it will also match a word (eg. following) in the sentence. Correct me if my understanding is wrong.

Hi Mahesh,

It will match whole string “following has been assigned” not part of it.

Ex: following has been assigned - TRUE
following has been assigned:abc - TRUE
following - FALSE

Yes, you are correct. My bad :frowning: