Community
    • Login

    Find & Replace in multiple values

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 94 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.
    • Artur MonhoA
      Artur Monho
      last edited by

      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.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Artur Monho
        last edited by

        @Artur-Monho said:

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

        Artur MonhoA 1 Reply Last reply Reply Quote 3
        • Artur MonhoA
          Artur Monho @Alan Kilborn
          last edited by

          @Alan-Kilborn

          Solved. Thanks

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