- AuthorPosts
- June 17, 2008 at 8:42 am #5908owilskyParticipant
Hi,
I want to highlight an expression between
and . Works fine of BEGIN and END tag is on the same line, but not if they are on diffferent lines. I tried the regex modifier (?s) which should include CR/LF into the dot operator, but had no success. My regex:
(?s).+? Any ideas how I can highlight it if BEGIN and END are not on the same line?
Thanks,
OliverJune 17, 2008 at 7:05 pm #5914Yutaka EmuraKeymasterowilsky wrote:
Hi,I want to highlight an expression between and . Works fine of BEGIN and END tag is on the same line, but not if they are on diffferent lines. I tried the regex modifier (?s) which should include CR/LF into the dot operator, but had no success.
My regex:
(?s).+?Any ideas how I can highlight it if BEGIN and END are not on the same line?
Thanks,
OliverThis is the specification — regular expressions can highlight only in a single line.
June 17, 2008 at 8:02 pm #5915owilskyParticipantSo, if I understand you right, this is a limitation of EmEditor, not of RegEx, because PCRE support the (?s) modifier.
Could this be changed in upcoming versions of EmEditor or will this slow down highlighting?
June 17, 2008 at 9:46 pm #5916Yutaka EmuraKeymasterowilsky wrote:
So, if I understand you right, this is a limitation of EmEditor, not of RegEx, because PCRE support the (?s) modifier.Could this be changed in upcoming versions of EmEditor or will this slow down highlighting?
This will slow down highlighting, and will require more memory per line. That is why I just cannot implement it near future.
- AuthorPosts
- You must be logged in to reply to this topic.