sjx_samuel
Member
- Joined
- Jun 4, 2008
- Messages
- 223
- Reaction score
- 0
<a>
<b name1="323232" name2="343243243"></b>
<b name2="" name1=""></b>
<b name1="" name3=""></b>
</a>
I've this xml with this content
I would like my regax to pass if these condition are met.
First: Tag <a> contained the specify child.
Second: <b element contain name 1 and name 2> only
Side note: Sequence <b>, same for name1 and name2 is not fixed
This is what i have done so far :
<b name1="323232" name2="343243243"></b>
<b name2="" name1=""></b>
<b name1="" name3=""></b>
</a>
I've this xml with this content
I would like my regax to pass if these condition are met.
First: Tag <a> contained the specify child.
Second: <b element contain name 1 and name 2> only
Side note: Sequence <b>, same for name1 and name2 is not fixed
This is what i have done so far :
Code:
(?<=<b).*(?<=name1=).*(?=></b>)