Community
    • Login

    Selecting text after =

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 1.6k Views
    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
      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
        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
          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
            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
              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
                drkkk whrrr @Alan Kilborn
                last edited by

                @Alan-Kilborn Thank you!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors