That regex needs to be made case insensitive, matching the underlying HTML. Note also that the regex still assumes that the VALUE attribute and SELECTED property appear in the given sequence, that the white space is strictly as expected, and that double quotes are used.
These kind of assumptions are only going to be valid if you are absolutely sure of the format of the HTML, otherwise you will need to parse properly.
In reply to Re: Re: lookaround assertions
by pbeckingham
in thread lookaround assertions
by avik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |