Community
    • Login

    Selecting text after =

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 3.3k 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.
    • drkkk whrrrD Offline
      drkkk whrrr
      last edited by

      Hey,

      I’d like to copy text in my file that is after = each line.
      How can I do that?

      Example :

      errorTitle=An error has occurred
      confirmTitle=Confirm

      context.cut=Cut
      context.copy=Copy
      context.paste=Paste
      context.delete=Delete
      context.selectAll=Select all

      Thanks.

      Mark OlsonM 1 Reply Last reply Reply Quote 0
      • Mark OlsonM Offline
        Mark Olson @drkkk whrrr
        last edited by Mark Olson

        @drkkk-whrrr

        1. Open find/replace form, go to Mark tab (or use Ctrl+M, assuming that shortcut is not already overridden).
        2. Enter (?-s)(?<==).+, use the Mark all command.
        3. All text on each line after the first = character will be marked.
        4. Use the copy marked text command, and paste the copied text in a new file.

        If you want to select everything after the first = in a line, that requires a scripting solution discussed here.

        Alan KilbornA 1 Reply Last reply Reply Quote 3
        • Alan KilbornA Offline
          Alan Kilborn @Mark Olson
          last edited by Alan Kilborn

          @Mark-Olson said in Selecting text after =:

          If you want to SELECT everything after the first = in a line

          And, if that’s what’s wanted, please (OP) state WHY that is valuable to do…

          1 Reply Last reply Reply Quote 1
          • drkkk whrrrD Offline
            drkkk whrrr
            last edited by

            It didn’t work, I don’t know why.

            It’s a huge .properties document where I’d like to translate each text after the = in another language.
            There’s also things like that :

            errors.openUrlError=Failed to open URL: {0}
            errors.openDirError=Unable to open ‘’{0}‘’. Maybe it doesn’'t exist?
            errors.reportErrorPreface=To report this error, please provide:\n\n

            Alan KilbornA 1 Reply Last reply Reply Quote 0
            • Alan KilbornA Offline
              Alan Kilborn @drkkk whrrr
              last edited by

              @drkkk-whrrr said in Selecting text after =:

              It didn’t work, I don’t know why.

              It works:

              0e4867d2-45fc-4c6e-97bf-6b904e673f0d-image.png

              Probably reference the orange arrow.

              drkkk whrrrD 1 Reply Last reply Reply Quote 1
              • drkkk whrrrD Offline
                drkkk whrrr @Alan Kilborn
                last edited by

                @Alan-Kilborn Thank you!

                1 Reply Last reply Reply Quote 0

                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