HI,
I have a string like this. These are the set of phrases enclosed in double quotes:
$str="\"rna binding protein\" OR \"Transcription factor\" ";
I want to replace the string like this:
$str="\"rna|(rna) binding protein\" OR \"Transcription|(Transcription) factor\" ";
How can i replace the above string to the new string format?
I tried to use split function but could not get the desired output.
How can i get the output like this?
$str="\"rna|(rna) binding protein\" OR \"Transcription|(Transcription) factor\" ";
Regards
Vanditha