Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4400
    user
    Participant

    hello

    document.selection.Replace("ι", "", eeFindReplaceOnlyWord | eeFindReplaceCase | eeFindReplaceQuiet | eeReplaceAll);  

    ι is i in greek

    this replaces ι even in here αιτ

    the eeFindReplaceOnlyWord command doesnt seem to work

    is this a bug?

    #4419
    user
    Participant

    anyone confirm the bug? will it be fixed?

    #4423
    Vlad
    Member

    See EmEditor Help – Dialog Boxes -Search Only Word check box: “A word is defined as a string that begins and ends with any of these characters: A – Z, a – z, 0 – 9, or an underscore.”

    To do what you want you can use regular expression: bιb
    b matches word boundary

    In JavaScript:
    document.selection.Replace(“bιb””,””,eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);

    #4424
    user
    Participant

    thanks
    the b doesnt exist in
    http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm

    is there a complete reference for regex?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.