Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    General Discussion
    2
    2
    38
    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.
    • gifthubbro
      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

      Sofistanpp 1 Reply Last reply Reply Quote 0
      • Sofistanpp
        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
        Copyright © 2014 NodeBB Forums | Contributors