Thanks for your fast answer.
My Problem is not using the RegExp IN the code but ON the code. (Editing / Generating code in the editor).
I know the $ meta-character. But somehow i cound not make it work correctly.
in reply to Re: OptiPerls Pattern Replace (Regexpses for one Line)
in thread OptiPerls Pattern Replace (Regexpses for one Line)
Here is an example, I had something like:
my $foobar = substr($line,20,30); # this is :;- a comment
which I changed to
for a couple of hundreds of variables.
# this is :;- a comment
for matching the comment at the end of the line, I did something like:
I think there must be a more elegant way to do this.