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
Post a Comment