- AuthorPosts
- July 28, 2009 at 9:21 pm #7501supercoolmParticipant
when I use this regular expressino to replace many entries each with different value
(?<=TITLE ").*?(?=")
TITLE "unknowXML"
FLAG "OFF"
Location "."
TITLE "HTML"
FLAG "OFF"
Location "./data/root"
TITLE "HTML"
FLAG "ON"
Location "/home/user/nonroot"
.
.
.
to something like
TITLE "1"
FLAG "OFF"
Location "."
TITLE "2"
FLAG "OFF"
Location "./data/root"
TITLE "3"
FLAG "ON"
Location "/home/user/nonroot"
.
.
.
eveytime I replaced one, and it automatically jump to next match.
The problem is when I enter the new target value for replace and click on replace, it directly replace next value and skip current jumped valueso the result becomes
TITLE "1"
FLAG "OFF"
Location "."
TITLE "HTML"
FLAG "OFF"
Location "./data/root"
TITLE "2"
FLAG "ON"
Location "/home/user/nonroot"
.
.
.
I think it’s a bad behaviour, but not sure if it’s a bug
July 29, 2009 at 3:15 am #7504Yutaka EmuraKeymasterCurrently, this is the specification although it is not a good behavior.
When you press “Replace” for the second time, (?<=TITLE ) part does not match the current selection.
However, you can try this:
TITLE “.*?”
TITLE “1”
and you will see a good behavior.
July 29, 2009 at 3:54 am #7506supercoolmParticipantis it possible to have an option to turn off the auto jump feature?
I think by disable automatically goto next match will solve the issueI was demostrate regular expression in a presentation and having to explain it’s EmEditor’s behaviour issue was kind of awkward.
- AuthorPosts
- You must be logged in to reply to this topic.