I am new to regular expressions, but I do not get why this is not working
import re inputstr = "HI\n//asgwrg\nasdg" re.sub("\/\/(.*)(\n)", "\n", inputstr)
I am trying to substitute everything between "//" and newline with newline. Can someone tell me whats wrong?
I am using python 3.1