Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4029

    Criss
    Member

    Hi,

    wonderful editor!

    At the moment I miss only one thing:
    boolean text-search in files (Google-like AND, NOT, OR).
    I know I can use regexp. f.e. (cat.+mouse)|(mouse.+cat) to search for two words (even within several lines via additional lines box in cutomize). But how to do NOT searches, f.e. find cat but not mouse, how to find cat AND mouse AND cheese etc.?
    The search result could then display every line containing one of the words.

    Beste regards
    Criss

    #4030

    Yutaka Emura
    Keymaster

    Searching for regular expression

    (cat|mouse)

    can find cat OR mouse.

    I am not sure what you mean by “cat but not mouse”. It donesn’t make sense to me.

    See http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm
    for more information about regular expression syntax.

    #4038

    tranglos
    Member

    I think the OP meant expressions like “cat AND NOT mouse”, or just “cat NOT mouse”. Those would be useful for Find in Files, and you cannot express this easily with a regular expression.

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

You must be logged in to reply to this topic.

Share with friends... Tweet about this on TwitterShare on FacebookShare on Google+Email this to someone