Patan
Patan

Reputation: 17893

Eclipse search a string by excluding some part

I am trying to search a string in eclipse.

<input type="text" autocomplete="off" />

<input type="text" sacsacdfsre />

I want to search all input elements of type text and exclude elements with autocomplete.

Search input and text and exclude autocomplete

I am trying

  input.*text.*^(autocomplete)

how can we solve this.

Upvotes: 1

Views: 868

Answers (1)

OGHaza
OGHaza

Reputation: 4795

Try something like this:

<input[^>]+type="text"(?![^>]*autocomplete).*?>

Working example on RegexPal

Upvotes: 1

Related Questions