Skip to content

Instantly share code, notes, and snippets.

@tapankavasthi
Created March 5, 2020 10:29
Show Gist options
  • Save tapankavasthi/259b64c23dae8afb3ac7dfc5d5380899 to your computer and use it in GitHub Desktop.
Save tapankavasthi/259b64c23dae8afb3ac7dfc5d5380899 to your computer and use it in GitHub Desktop.
Balanced Parantheses Using Regex
:combine
s/\(\)//g
s/\{\}//g
s/\[\]//g
t combine
s/^$/balanced/p
t
s/.*/Unbalanced/p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment