I need to replace a text inside a string.
eg: The text will be
Hello! This is a test [query] which i am using for [transformation]
And what i need is to extract the string's inside [] with another string mapping object i have. which is in the form
{
"query":'ab',
"transformation":'cd'
}
So the result string will be
Hello! This is a test [ab] which i am using for [cd]