Hi guys, I'm looking for a regex that will change sth. like this:
print "testcode $testvar \n";
in
printnlog("testcode $testvar \n");
I tried %s/print\s*(.\{-});/printnlog(\1);/g
but gvim says
print\s*(.\{-});
doesn't match.
Where is my fault? Is it ok to use '*' after '\s' because later '{-};' will stop the greed?
Thanks in advance.