Community
    • Login

    Need some help here, please

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 561 Views 1 Watching
    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 SmithJ Offline
      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 KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        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 SmithJ Offline
          Jay Smith
          last edited by

          Thank you!

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors