Skip to content

Instantly share code, notes, and snippets.

@renatomattos2912
Created June 26, 2018 19:02
Show Gist options
  • Save renatomattos2912/002b2214fb23e4ed01eaf3aca65e0a2e to your computer and use it in GitHub Desktop.
Save renatomattos2912/002b2214fb23e4ed01eaf3aca65e0a2e to your computer and use it in GitHub Desktop.
Regex
// Get values inside brackets, ex: {{test}}
/{{[{]?(.*?)[}]?}}/g
// Get values started with @, ex: @test
/@[a-zA-Z]*/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment