Skip to content

Instantly share code, notes, and snippets.

@inhumantsar
Last active August 29, 2015 14:04
Show Gist options
  • Save inhumantsar/59d323a9c5c5c24899b9 to your computer and use it in GitHub Desktop.
Save inhumantsar/59d323a9c5c5c24899b9 to your computer and use it in GitHub Desktop.
Handy Regex
%s/.*"name":"\([-a-z0-9A-Z.]*\)".*/\1/g
Convert {"host":{"name":"host.domain.com","id":348,"hostgroup_id":null,"operatingsystem_id":5}}, to list of hostnames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment