In the mean time, here's a stab at what I think you mean:
my $lines = "} } \n } }\n foo } }\n"; $lines =~ s,(}[}\s]*)\n, "}\n" x ($1 =~ tr!}!!) ,xgem; print $lines; __END__ } } } } foo } }
In reply to Re: Cleaner regex conversion
by pc88mxer
in thread Cleaner regex conversion
by DanielNeedles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |