I have input string as below
("abc xyz" OR "def") AND (ghi OR jkl) AND ("mno poe" OR stu)
i want it to replace with
(myfun("abc xyz") OR myfun("def")) AND (myfun(ghi) OR myfun(jkl)) AND (myfun("mno poe") OR myfun(stu))
i want that string with in double quotation mark or single word get replace with myfun(<string matched>)
can any body help me , how can i set this using regular expression ?
Thanks
Meghana
1 Answer