fork download
  1. import re
  2. addr_str = "No 123 4th St, 5th Ave NYC\n\tPhone: 0-800-MALL"
  3. print re.search(r"Phone:\s*(.*)$", addr_str).group(1)
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
0-800-MALL