• Login
Community
  • Login

Find and Replace specific word in strings that start with...

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 338 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.
  • F
    flux4201
    last edited by Nov 5, 2022, 6:17 PM

    I have an XML document with multiple lines containing

    <field name="UclAstroCnv_SystemAlias_A00022" Name="Unassigned">ID_UNASSIGNED</field>
    

    I need to replace the word “Unassigned” with a different word, like “Hello123” as an example. However the word “Unassigned” is used in other strings in this document so i cant just search for Unassigned and replace with the word i need to replace it with. Also the _A00022 in this example would be different in other strings that contain

    <field name="UclAstroCnv_SystemAlias
    

    Is there a way to search for “Unassigned” in strings that contain

    <field name="UclAstroCnv_SystemAlias
    

    and replace “Unassigned” with “Hello123”?

    A 1 Reply Last reply Nov 5, 2022, 6:53 PM Reply Quote 0
    • A
      Alan Kilborn @flux4201
      last edited by Nov 5, 2022, 6:53 PM

      @flux4201

      What you are looking has been dealt with before; see if THIS POST makes sense to you in regards to how it is accomplished. Ask further questions here if needed.

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