W
Ward Bekker
Hi,
I need a regular expression that will match only the tags that have
nested tags inside them:
Input:
<control id=1><control id=2></control></control><control id=3></control>
Goal:
The regexp should match <control id=1><control id=2></control></control>
When i use this regexp: <control\sid=.+?>.+?\</control> it does not
handle the nesting correcly, returning this as a match: <control
id=1><control id=2></control></control>.
Thank you for your help,
Gr. Ward
I need a regular expression that will match only the tags that have
nested tags inside them:
Input:
<control id=1><control id=2></control></control><control id=3></control>
Goal:
The regexp should match <control id=1><control id=2></control></control>
When i use this regexp: <control\sid=.+?>.+?\</control> it does not
handle the nesting correcly, returning this as a match: <control
id=1><control id=2></control></control>.
Thank you for your help,
Gr. Ward