Skip to content

Instantly share code, notes, and snippets.

@mt-atkins
Last active April 30, 2020 13:16
json to hcl with regex
(^ )(".*")(: \[)(\n.*\{\n)(.*capa.*")(: )(\[)([\s\S]*?)(\]\n)
path $3 {\n $6 = $8 $9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment