How to get the text before and after certain word in a string.
Hi All,
I have a scenario where i need to get the text before and after certain word in a string.
Ex:
put "Hi i am new to eggplant automation and started learning the tool" into variable1.
Now i need the text before and after the word "Automation" into separate variable.
Any help on this would be great
I have a scenario where i need to get the text before and after certain word in a string.
Ex:
put "Hi i am new to eggplant automation and started learning the tool" into variable1.
Now i need the text before and after the word "Automation" into separate variable.
Any help on this would be great
Tagged:
Comments
You could try making a copy of the variable and then using
delete
to remove the word "automation" like this:Here's the documentation: delete command
put "Hi i am new to eggplant automation and started learning the tool" into variable1