Created
March 5, 2020 10:29
-
-
Save tapankavasthi/259b64c23dae8afb3ac7dfc5d5380899 to your computer and use it in GitHub Desktop.
Balanced Parantheses Using Regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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