I want to match all lines where asp:DropDownList does not contain a class selectpicker
Here's what I have so far:
^((\b<asp:DropDownList\b)*(?!selectpicker).)*$
My test strings are:
<asp:DropDownList class="form selectpicker">
<asp:DropDownList class="selectpicker">
<asp:DropDownList class="form">
<asp:TextBox class="selectpicker">
<asp:TextBox class="form">
I only want 3rd item from the list as that is the only DropDownList tag not containing the class.