Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4867
    QiaoJiao
    Participant

    Hi everyone!

    There is a text “aaaaaxaaaa”

    If you use “search and repalce”, you can enter “(x)” in the find box and “1” in the replace box. It returns “aaaaaxaaaa”.

    But when i use script:
    document.selection.Replace(“(x)”, “1“, eeFindReplaceRegExp);
    it returns “aaaaa
    aaaa”. It spoils characters.

    How to use back reference in scripts?

    Thanks in advance.

    #4868
    CaptainFlint
    Participant
    #4869
    QiaoJiao
    Participant

    That’s it!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Regular Expressions’ is closed to new topics and replies.