How to select the text between <cci> </cci> and in the selected text I have to check whether
"&amp;" and"&" exists or not.
If it exists i have to replace it with '-'.
How can I do this in a single statement.
Code:$_ =~ /<cc>([\s\S]+?)<\/cc>/; my $name_pre = $1; $name_pre =~ s/&amp;/-/g; $name_pre =~ s/&/-/g;