Eclipse Negative search using regex

Example 1:

If you want to search for all <script…. > tags which do not have “src” attribute. Use following regex.

<script(?!.*src).*$

Example 2:

If you want to search for all <dsp:form …> tags which do not have “formid” attribute, use following.

<dsp:form(?!.*formid).*$

 

Note: Do not forget to check regex box.

 

eclipse-veregex