Community
    • Login

    extract only two columns

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.0k Views 2 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.
    • kellyyerK Offline
      kellyyer
      last edited by

      hello guys, I was reviewing several solutions to have only two groups which are separated by ¡, but I have not succeeded, I need group or column 19 and 20, my file is large, I show you an example,

      spell-class¡“.instant.ProjectileSpell”¡name¡explosivearrow¡spell-icon¡arrow¡description¡Cause¡an¡explosion¡where¡an¡arrow¡lands¡cast-item¡blaze_rod¡cooldown¡1¡projectile¡arrow¡velocity¡0¡require-hit-entity¡false¡cancel-damage¡true¡remove-projectile¡true¡max-distance¡30¡spells¡[explode]

      I need these two columns
      projectile¡arrow
      Can anyone help me?

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @kellyyer
        last edited by

        @kellyyer

        So the comma character is a more-common delimiter than yours, but if you replace every comma in the following with your special delimiter, this should work or at least get you started:

        Invoke Replace (press ctrl+h).
        Find what zone: (?-s)^(?:.+?,){18}(.+?,.+?),.+ <–again replace every comma here!
        Replace with zone: \1
        Search mode: Regular expression
        Action: Press the Replace All button

        I encourage you to read about regular expressions, some ways to get started here. Try the above expression in some of the interactive regex sites to see how it works. Perhaps you will end up with a new technique in your data manipulation arsenal.

        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