Skip to content

Instantly share code, notes, and snippets.

@major
Created September 11, 2017 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save major/363d8b41eedaf35f2536a1fdf10e02fc to your computer and use it in GitHub Desktop.
Save major/363d8b41eedaf35f2536a1fdf10e02fc to your computer and use it in GitHub Desktop.
In [15]: regex = re.compile('^gate-ansible-hardening-.*-ubuntu-trusty.*$')
In [16]: regex.findall('gate-ansible-hardening-ansible-func_rhel6-ubuntu-trusty')
Out[16]: ['gate-ansible-hardening-ansible-func_rhel6-ubuntu-trusty']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment