Eclipse通过排除某些部分来搜索字符串

时间:2013-11-21 13:51:06

标签: regex eclipse

我正试图在eclipse中搜索一个字符串。

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

<input type="text" sacsacdfsre />

我想搜索文本类型的所有输入元素,并使用自动完成功能排除元素。

Search input and text and exclude autocomplete

我正在尝试

  input.*text.*^(autocomplete)

我们怎样才能解决这个问题。

1 个答案:

答案 0 :(得分:1)

尝试这样的事情:

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

Working example on RegexPal

相关问题