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.
Here is an example, I had something like:
my $foobar = substr($line,20,30); # this is :;- a comment
which I changed to
# this is :;- a comment
for a couple of hundreds of variables.
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.