Community
    • Login

    My regular expression replace isn’t working properly for multiple characters

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 190 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gifthubbroG
      gifthubbro
      last edited by

      https://i.imgur.com/uIl8mXA.png ive set it to find (I)|(a), which is to be replaced with (?1c)|(?2d) , I tested this by writing in “ha” but this gets replaced with “h|d” while I was expecting it to turn out as “hd” – what did I do wrong?

      Thanks in advance

      SofistanppS 1 Reply Last reply Reply Quote 0
      • SofistanppS
        Sofistanpp @gifthubbro
        last edited by

        Hi @gifthubbro

        The replacement expression should be (?1c)(?2d), that is, without the “|”.

        1 Reply Last reply Reply Quote 4
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors