Skip to content

Instantly share code, notes, and snippets.

@jamiekt
Last active July 22, 2022 13:16
Show Gist options
  • Save jamiekt/889f861259b29e0a458319b811de1246 to your computer and use it in GitHub Desktop.
Save jamiekt/889f861259b29e0a458319b811de1246 to your computer and use it in GitHub Desktop.
return {
match.group(0)
for matched_policy in matched_policies
if (match := re.search(r"p\d{6}", matched_policy)) is not None
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment