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

Discussion, questions and support.
Post Reply
Message
Author
blum
Posts: 2
Joined: 27.11.2019, 19:03

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

#1 Post by blum » 27.11.2019, 20:30

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

blum
Posts: 2
Joined: 27.11.2019, 19:03

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

#2 Post by blum » 27.11.2019, 21:24

Found working solution:

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 28 guests