Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    2
    53
    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.
    • flux4201
      flux4201 last edited by

      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”?

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @flux4201 last edited by

        @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
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors