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(“([αβγδεζηθικλμνξοπρστυφχψωςάέήίόύώ]) document.selection.Replace(“b 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)
  • The forum ‘Regular Expressions’ is closed to new topics and replies.