Community

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

    Need some help here, please

    Help wanted · · · – – – · · ·
    2
    3
    86
    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.
    • Jay Smith
      Jay Smith last edited by

       <resource name="dirt" title="%EarthT" desc="%EarthD" file="gfx\level_tiles\craft_res\craft_dirt_01" build="dirt" application="mining" properties="wall" shop_count="10" shop_cost="1" pak="" />
         <resource name="sand" title="%SandT" desc="%SandD" file="gfx\level_tiles\craft_res\craft_send_01" build="sand" application="mining" properties="wall" shop_count="5" shop_cost="1" pak="" />
      
      

      I have tis XML file and I want to replace all shop_count values to the same number. but have no idea how to search and replace them.For example, I would like to search for shop_count=“any number” and replace it with shop_count=“10”. Is it possible to search this way?

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

        @jay-smith

        find: shop_count="\d+"
        repl: shop_count="10"
        mode: Regular expression

        1 Reply Last reply Reply Quote 2
        • Jay Smith
          Jay Smith last edited by

          Thank you!

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