Community

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

    Find and Replace values between tags over multiple files

    Help wanted · · · – – – · · ·
    2
    3
    855
    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.
    • Zecron Claw
      Zecron Claw last edited by

      So i have a value in multiple files that is different in all the files that i want to change to one number.

      <TurnBandVelocity1>1.60</TurnBandVelocity1>

      So i have the 1.60 that i want to change to 1.20, but the value is not 1.60 in every file. What is the search line that i should use to do this.

      Scott Sumner 1 Reply Last reply Reply Quote 1
      • Scott Sumner
        Scott Sumner @Zecron Claw last edited by

        @Zecron-Claw

        How about something like this?:

        Find what zone: (?-i)(?<=<TurnBandVelocity1>)[0-9.]+(?=</TurnBandVelocity1>)
        Replace with zone: 1.20
        Search mode: Regular expression

        Hint: Back up all of your data before using Replace in Files !

        1 Reply Last reply Reply Quote 1
        • Zecron Claw
          Zecron Claw last edited by

          Thank you this worked :D

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors