import re print(re.match(r'//.*$', '// foo'))print(re.match(r'//.*$', 'some code here // foo'))print(re.match(r'//.*$', 'no match'))
Standard input is empty
<_sre.SRE_Match object at 0xb746cdb0> None None
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!