Page 1 of 1

Search text file with pipe between two or more text block in regular expression

Posted: 27.11.2019, 20:30
by blum
Hi,

Who can help with regular expression for search files with string "| text_1 | text_2 |":

This expression works fine in notepad++ but doesn't work in FreeCommander XE 2019 Build 790a 32-bit public:
.*\|.*(text_1).*\|.*(text_2).*\|.*
.*(text_1).*\|.*(text_2).*

Note, following expression work fine:
.*\|.*(text_1).*\|.*

Thank you

Re: Search text file with pipe between two or more text block in regular expression

Posted: 27.11.2019, 21:24
by blum
Found working solution:

\Q|\E[\w\s]+(text_1)[\w\s]+\Q|\E[\w\s]+(text_1)[\w\s]+\Q|\E