I wanted to extract test 1 and this.test2 I did below and later processed the right hand side
string1:test1 = {{this.test2}}
String[] parts = string1.split("=");
I'm planning to extract/print id1 and id2, product_application,product1,this.product2 from above String.How can I split the string and extract them :
Test1:
id1 IN (SELECT id2 FROM product_application WHERE product1 = {{this.product2}})
Test2:
id3 IN (SELECT id4 FROM location WHERE region1 = {{this.region2}}
I want to extract or print like below.
Output for string 1:
id1, id2, product_application, product1, product2
Output for string 2:
id3, id4, location, region1, region2