• Login
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.
  • D
    drkkk whrrr
    last edited by Aug 5, 2023, 2:23 PM

    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.

    M 1 Reply Last reply Aug 5, 2023, 2:30 PM Reply Quote 0
    • M
      Mark Olson @drkkk whrrr
      last edited by Mark Olson Aug 5, 2023, 2:38 PM Aug 5, 2023, 2:30 PM

      @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.

      A 1 Reply Last reply Aug 5, 2023, 3:05 PM Reply Quote 3
      • A
        Alan Kilborn @Mark Olson
        last edited by Alan Kilborn Aug 5, 2023, 3:05 PM Aug 5, 2023, 3:05 PM

        @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
        • D
          drkkk whrrr
          last edited by Aug 5, 2023, 5:05 PM

          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

          A 1 Reply Last reply Aug 5, 2023, 5:07 PM Reply Quote 0
          • A
            Alan Kilborn @drkkk whrrr
            last edited by Aug 5, 2023, 5:07 PM

            @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.

            D 1 Reply Last reply Aug 5, 2023, 6:10 PM Reply Quote 1
            • D
              drkkk whrrr @Alan Kilborn
              last edited by Aug 5, 2023, 6:10 PM

              @Alan-Kilborn Thank you!

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