Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?:\“(?P<title>\w.*)\”)\s?(?:(?:(?P<season>\d{2})\s(?P<type>\w.*))|(\w.*))\s\W\s(?P<network>\w.*)?\n\s?(?:\d{2}-\d{2}-\d{2})..\n(?P<prod_comp>\w.*)\n(?P<address>\w.*)\n\s(?P<email>\w.*\@\w.*\.\w{2,3})\nPHONE:\s(?P<phone>\d{3}-\d{3}-\d{4})\nSTATUS:\s(?P<start>\w.*\d{4})\sLOCATION:\s(?P<location>\w.*)\nPRODUCER:\s(?P<prod>\w.*)\sWRITER:\s(?P<writer>\w.*)\n
"
gm

Description

test to grab from the big list

Submitted by anonymous - 5 years ago