Just Me
Just Me

Reputation: 1063

Regex - Select the entire file that contains an word in textcrawler

I need to select and delete all content of those files that contains word "MY_WORD".

blah blagh
tata MY_WORD ppp
mother id 787

I try this regex (?s)(.*?MY_WORD).*$ or [^"]+(MY_WORD)[^"]+ and works in notepad++, but doesn't work in TextCrawler.

Upvotes: 0

Views: 128

Answers (2)

Just Me
Just Me

Reputation: 1063

(?s).*\b(MY_WORD)\b.*

or

[^*]+(MY_WORD)[^*]+

Upvotes: 0

Mustofa Rizwan
Mustofa Rizwan

Reputation: 10476

You can just try this approach:

.*MY_WORD.*

and also need to check "Dot matches newline".

enter image description here

Upvotes: 1

Related Questions