Skip to content

Instantly share code, notes, and snippets.

@jamiekt
Last active July 22, 2022 13:11
Show Gist options
  • Save jamiekt/02a984e5f6633c3d21d791ff5ab49a0a to your computer and use it in GitHub Desktop.
Save jamiekt/02a984e5f6633c3d21d791ff5ab49a0a to your computer and use it in GitHub Desktop.
import re
matched_policies = {...} #some logic to derive a set
return {
re.search(r"p\d{6}", matched_policy).group(0)
for matched_policy in matched_policies
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment