Understanding EmEditor Issues: Unraveling Regex and Function Quirks

Understanding EmEditor Issues: Unraveling Regex and Function Quirks

Stephen Lv8

Understanding EmEditor Issues: Unraveling Regex and Function Quirks

September 13, 2009 at 5:00 pm #7634

Salabim

Participant

Sorry if this all sounds so difficult, the biggest problem is my little knowledge of English to explain the problem
properly, and of course I’m far from a pro into brewing regular expressions.

Perhaps, I can give some kind of English example that gives an
idea of what I mean.

So, In English, correcting the following line(s) properly.
Is that possible to properly correct with 1 single line of regexp ?

English example :
I wantto lookto the car, while doing a salto justto celebrate how great is it.

with the example above, you cannot simple say : Look for any word that ends with to and put
a space inbetween it, because then the word salto would improperly been turn apart. And of course,
checking that the words to search for, are indeed surrounded by a space or a comma, or a newline, is not possible too,
because in the English example I gave the space after wantto is being captured, so the regexp doesn’t correct
the lookto right after it, because there it doesn’t see the preceding space
because it is handled by the match before it.

So, what can I do, I guess I can only write all my regexp’s double, or is there any
special switch to make it work correctly with 1 line of regexp ?

EDIT: before you say look to is not correct and has to be look at, I know ! :-D it’s
only just to give an example.

Also read:

https://techidaily.com
  • Title: Understanding EmEditor Issues: Unraveling Regex and Function Quirks
  • Author: Stephen
  • Created at : 2024-10-15 01:20:08
  • Updated at : 2024-10-20 01:47:32
  • Link: https://win-extraordinary.techidaily.com/understanding-emeditor-issues-unraveling-regex-and-function-quirks/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Understanding EmEditor Issues: Unraveling Regex and Function Quirks