I need a regular expression to uncomment a block of Perl code, commented with #
in each line.
As of now, my find expression in the Eclipse IDE is (^#(.*$\R)+)
which matches the commented block, but if I give $2
as the replace expression, it only prints the last matched line. How do I remove the #
while replacing?
For example, I need to convert:
# print "yes";
# print "no";
# print "blah";
to
print "yes";
print "no";
print "blah";