Balanced brackets: Difference between revisions
→PowerShell (Regex Version)
Line 4,235:
'', '[]', '][', '[][]', '][][', '[[][]]', '[]][[]' | ForEach-Object {
if ($_ -
"{0}: {1
}
</lang>
{{Out}}
<pre>
(Empty) :
[] :
][ : Is not balanced.
[][] :
][][ : Is not balanced.
[[][]] :
[]][[] : Is not balanced.
</pre>
|