• Login
Community
  • Login

How to replace text that is only exact match

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 712 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.
  • I
    Isaac Goh
    last edited by Oct 12, 2021, 5:17 AM

    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.

    A 1 Reply Last reply Oct 12, 2021, 11:47 AM Reply Quote 0
    • A
      Alan Kilborn @Isaac Goh
      last edited by Oct 12, 2021, 11:47 AM

      @Isaac-Goh

      Index 10(?!\d)

      1 Reply Last reply Reply Quote 1
      • I
        Isaac Goh
        last edited by Oct 12, 2021, 12:11 PM

        @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
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors