c++ - Regex: match if two parts contain the same amount of elements -


i have strings that: <a><bbe> <asd b><d f> <a b d><g ew agf> amount of elements in brackets must equal match.

without equal sides condition \<((?:\w+ )*\w+)\>\<((?:\w+ )*\w+)\> condition match these unwanted examples too: <a><b c> <a b c d><efwdw>.

how can add additional check regular expression?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -