in reply to Re: nested replace
in thread nested replace
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<"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: nested replace
by choroba (Cardinal) on Mar 18, 2016 at 10:09 UTC | |
|
Re^3: nested replace
by Anonymous Monk on Mar 18, 2016 at 10:07 UTC | |
|
Re^3: nested replace
by Anonymous Monk on Mar 18, 2016 at 10:13 UTC |