fork download
  1. import re
  2.  
  3. print(re.match(r'//.*$', '// foo'))
  4. print(re.match(r'//.*$', 'some code here // foo'))
  5. print(re.match(r'//.*$', 'no match'))
Success #stdin #stdout 0.06s 9568KB
stdin
Standard input is empty
stdout
<_sre.SRE_Match object at 0xb746cdb0>
None
None