Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Using the code below:
  2.  
  3. import pprint
  4. import re
  5. phoneNumRegex = re.compile(r'\(\d\d\d\) \d\d\d-\d\d\d\d')
  6. pprint.pprint(phoneNumRegex.findall("""web content""")
  7.  
  8. Make sure there is a backslash in front of the closing parenthesis of the area code. Import the pprint function and apply it to both the object and function of the regular expression. Yes?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement