Score:0

Regular expression does not work in EMEditor

ru flag

I have a simple Regular expression to select all text between X-Mozilla-Status and [Chat Info]. I tried it at https://regexr.com/, and it all works great. However, it can't find anything if I add it to the find area in EMEditor and search my files.

I am using:

X-Mozilla-Status([\s\S]*?)[Chat Info]

the text it suppose to select is as following

X-Mozilla-Status: 0000 X-Mozilla-Status2: 00000000 X-Mozilla-Keys:
X-Account-Key: account2

------=_NextPart_000_0790_B78A7E3E.3A9C4181 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable

[Chat Info]

Message .....

It works perfectly in regex.com but not in EMEditor regex search.

Is there an alternative, or do I have an error?

Thank you, everyone, for the guidance.

Best wishes, Thomas

Score:0
ru flag

After messing with this for a while, I decided to try another editor. This resolved my issue using Notepad++ did the job perfectly.

Thanks everyone to look at my issue

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.