Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4427
    user
    Participant

    can you tell me please how to match text that is not preceded by begingin-of-line + a or b

    also, I want the above to be non case sensitive, but in another part of the script I need case sensitivity, is there a way to determine it two times in one script?

    also can you tell me please why this is wrong

    document.selection.Replace(“^”, “Α”, eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll);

    I want to replace when its in the begining of a line with A

    and last, can I combine these to in one script?
    document.selection.Replace(“([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])<([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])", "1κ2", eeFindReplaceCase | eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll);
    document.selection.Replace(“b<([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ])", "κ1", eeFindReplaceCase | eeFindReplaceRegExp | eeFindReplaceQuiet | eeReplaceAll); I mean to add the b to the first script?
    thanks

    #4431
    Yutaka Emura
    Keymaster

    You will need to use “^\” instead of “^”. Regular Expressions expects , and JavaScript also escapes backslashes, so it needs to be \. If this does not solve your other questions, please let me know. Thanks.

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