Thanks choroba, for your comments of the modifier. I used:
but it replaces the text within the "/*...*/" with the a position of the text.$string =~ s:/ \* (.*?) \*/ : (my $x = $1) =~ s/[^\n]//g; $x :gsex;
">/*x*/<" is converted in ">1<" instead of "><" ">/*x\nx\nx*/<" is converted in ">3<" instead of ">\n\n<"
In reply to Re^2: nested replace
by Anonymous Monk
in thread nested replace
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |