Overcoming Issues with New Line Character Recognition in the emEditor Text Editor

Overcoming Issues with New Line Character Recognition in the emEditor Text Editor

Jason Lv8

Overcoming Issues with New Line Character Recognition in the emEditor Text Editor

Viewing 4 posts - 1 through 4 (of 4 total)

  • Author
    Posts
  • August 24, 2011 at 2:48 pm #9589
    shellymeow
    Member
    Hello everyone
    Sorry about my poor English..
    I already enabled “Regular Expressions Match New Line Characters” checkbox
    but I still cannot find out the string contains a new line that with the regular expression
    .*?

why?
the version is 10.1.1
August 24, 2011 at 4:52 pm #9591
Deipotent
Participant
You also need to change the option below the “Regular Expressions Match New Line Characters” checkbox, “Additional Lines to Search for Regular Expressions”, from 0 to the maximum number of lines a tag could span. For example, if your tag is:

<td>first line  
second line</td>  
 you need to set it to 1, as the tag is one line later than the  

tag. the higher the number you set it, the slower the regex engine will work, as it will be looking at more lines.
You could try setting to 100 or 1000 and see how performance is.
August 24, 2011 at 5:05 pm #9593
shellymeow
Member
It works!!
Thank You so much!
August 24, 2011 at 8:21 pm #9601
Stefan
Participant
There could be an warning dialog after clicking [OK]
IF “Regular Expressions Match New Line Characters” is checked
AND “Additional Lines to Search for Regular Expressions” is set to ‘0’
Like:
“You have chosen to use RegEx in multi line mode.
Please note that you have to set the roughly expected “Additional Lines” option too.”

EDIT:
Or an better idea:
That two options could be somehow “grouped” by an thin frame line,
and the “Additional Lines” option could be greyed-out
while “Match New Line” is disabled,
to make the relationship better visible.
—————————————————
“[X] Regular Expressions Match New Line Characters”
“Multi Line mode search max. for [0 ] additional lines.”
—————————————————
– – –
Or maybe these option could be set to an higher amount as ‘0’ by default.
Would be an amount of, lets say, ’30’ really that slow?
.

  • Author
    Posts

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.

Also read:

https://techidaily.com
  • Title: Overcoming Issues with New Line Character Recognition in the emEditor Text Editor
  • Author: Jason
  • Created at : 2024-10-24 21:22:11
  • Updated at : 2024-10-29 04:37:40
  • Link: https://win-great.techidaily.com/overcoming-issues-with-new-line-character-recognition-in-the-emeditor-text-editor/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Overcoming Issues with New Line Character Recognition in the emEditor Text Editor