java - Is this possible with regular expression? -


() [] {} these valid matches ({)} false, eg.:

() - true ()[]- true ()[]{} - ture ([]) - false (){[}] - false. 

can use regular expression compute this?

no, 1 of known limitations of regular expressions can't tell whether parentheses formed.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -