Sublime Forum

Find "all phrases" in a file

#1

Good Day,

I have a ton of text files, and I need to find a file, which contains all the phrases, like “a”, “b”, “c”. The order, or how much space is between them it doesn’t matter.

How can I accomplish this?

Best Regards,

0 Likes

#2

You can search them with the regex feature.
To activate regex in the serach press alt+r on windows

^(?=.\bvalue1\b)(?=.\bvalue2\b).*$

You can easily add more values to the search request

^(?=.\bvalue1\b)(?=.\bvalue2\b)(?=.\bvalue3\b)(?=.\bvalue4\b)(?=.\bvalue5\b).$

regards REJack

0 Likes