Community
    • Login

    How to replace text that is only exact match

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 684 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.
    • Isaac GohI
      Isaac Goh
      last edited by

      Have thousands of lines starting with Index 0 to Index 1000
      I only want to replace specific line e.g. index 10 and not Index 100 or Index 101 or Index 102
      When I input (Index 10) in the Find What: box and
      input (\1)\t(\2ok) in Replace with: box and click Replace All, Beside Index 10, It will include Index 100-109 and all those starting with Index 10… Is there any quote or symbol used to only specific a text with exact match, thanks.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Isaac Goh
        last edited by

        @Isaac-Goh

        Index 10(?!\d)

        1 Reply Last reply Reply Quote 1
        • Isaac GohI
          Isaac Goh
          last edited by

          @Alan-Kilborn said in How to replace text that is only exact match:

          Index 10(?!\d)

          Thanks a million

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