Please could somebody tell me the regular expression in thefollowing case.
I want to replace variable within {} with some other variable in the string.
for e.g:-
$string = "{she} is my friend";
$replace_variab le = "sita";
how to replace "{she}" with "sita" using regular expression?
I want to replace variable within {} with some other variable in the string.
for e.g:-
$string = "{she} is my friend";
$replace_variab le = "sita";
how to replace "{she}" with "sita" using regular expression?
Comment