fork download
  1. print=None
  2. import re
  3. phoneNumRegex = re.compile(r"\d\d\d-\d\d\d-\d\d\d\d")
  4. mo = phoneNumRegex.search('My number is 415-555-4242.')
  5. print('Phone number found: '+mo.group())
Runtime error #stdin #stdout #stderr 0.02s 28384KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
TypeError: 'NoneType' object is not callable