- January 12, 2011 at 6:12 pm #9186
I’ve been trying to search for files containing the following regular expression:
But it always fails, apparently with a silently swallowed exception. I am using EmEditor 10.0.4 64-bit on Windows 7 Professional. The problem seems to be always reproducible. Could you please check it out?January 12, 2011 at 7:19 pm #9187
Can you please try:
I saw your message on my email inbox, too.
Thanks!January 12, 2011 at 7:33 pm #9188
$ is end of line.
Unless your file contains multiple types of carriage-returns, wherein you’d want to specify a difference between unix n and windows rn, $ should work just fine.January 17, 2011 at 12:30 pm #9199
It works, thanks. It would be nice if this could be done automatically based on each file’s newline pattern. For now I’ll use “(?:n|rn)”, but I hope EmEditor can integrate this feature.
Thanks again.January 17, 2011 at 12:31 pm #9200
Thanks for the suggestion, but it wouldn’t work for me, as I need to capture the newline character itself, as I’m trying to find consecutive empty lines.January 17, 2011 at 4:53 pm #9202
This should work: (?m)}$r?n$r?n^O
Except it appears that EmEditor doesn’t support ANY Regex options:
(?m), (?i), (?-i), (?g), (?-g)
in Ted’s Notepad for instance, will match:
In EmEditor you cannot use multiple “^” or “$”, or else it it wrongly errors out with a message about invalid regex.
E.G. this works:
I use ?m), ?-i) and ?-g) all the time in AHK scripts, and (?-i) and (?-g) in Total Commander’s multi-rename tool.January 17, 2011 at 9:52 pm #9205
Will support be added to EmEditor for the features CrashNBurn mentions (eg. multiple ^ and $, and (?m), (?i) etc.) ?
You must be logged in to reply to this topic.