• Login
Community
  • Login

Find & Replace in multiple values

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 148 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.
  • A
    Artur Monho
    last edited by Mar 13, 2025, 4:57 PM

    Could you please help me the the following search-and-replace problem I am having?

    I need to make a substitution in multiple values, for a defined value.
    In the example I indicate 5 lines, but there will be around 2000, in a document with 80000 lines.

    Here is the data I currently have:

    <CustomerTaxID>505811480</CustomerTaxID>
    <CustomerTaxID>500070210</CustomerTaxID>
    <CustomerTaxID>203375661</CustomerTaxID>
    <CustomerTaxID>503487481</CustomerTaxID>
    <CustomerTaxID>503424552</CustomerTaxID>

    Here is how I would like that data to look:

    <CustomerTaxID>999999999</CustomerTaxID>
    <CustomerTaxID>999999999</CustomerTaxID>
    <CustomerTaxID>999999999</CustomerTaxID>
    <CustomerTaxID>999999999</CustomerTaxID>
    <CustomerTaxID>999999999</CustomerTaxID>

    How can I use regular expressions for this purpose?

    Thank you very much.

    A 1 Reply Last reply Mar 13, 2025, 5:20 PM Reply Quote 0
    • A
      Alan Kilborn @Artur Monho
      last edited by Mar 13, 2025, 5:20 PM

      @Artur-Monho said:

      Search for <CustomerTaxID>\d+</CustomerTaxID>

      A 1 Reply Last reply Mar 13, 2025, 5:28 PM Reply Quote 3
      • A
        Artur Monho @Alan Kilborn
        last edited by Mar 13, 2025, 5:28 PM

        @Alan-Kilborn

        Solved. Thanks

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