Community
    • Login

    How to extract just "text" with notepad

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.9k 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.
    • Unlyn321U Offline
      Unlyn321
      last edited by

      Hi all!

      Just as a word of warning, I am very new to Notepad++, and the explanations I find on the Web pass well over my head due to their (probably relative) complexity.

      My aim with Notepad ++ is simple, I have a file like this:

      _APPMANAGER_WAITING: “En attente…”,
      _APPMANAGER_WAITING_TO_UPDATE: “En attente de mise à jour…”,
      _APPMANAGER_DOWNLOADING: “Téléchargement en cours…”,
      _APPMANAGER_DOWNLOADING_UPDATE: “Téléchargement de la mise à jour…”,
      _APPMANAGER_INSTALLING: “Installation…”,
      _APPMANAGER_INSTALLING_UPDATE: “Installation de la mise à jour…”,

      I want to use a spell check software on the French text to make it as flawless as possible, but it is unusable due to the tags at the beginning.
      So my question is: is there a way to just extract the text, which would give someting like:

      En attente…
      En attente de mise à jour…
      Téléchargement en cours…
      … and so on.

      Thanks :-)

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

        @Thomas-Partensky

        Well, you could take a copy of the file and replace all of the undesired text with nothing, leaving you only the French, example:

        Invoke the Replace dialog (ctrl+h)
        Find what zone: ^_APPMANAGER_.+?:
        Replace with zone: make sure it is blank
        Search mode: Regular expression

        For more info on regular expression searches/replacement, see here.

        1 Reply Last reply Reply Quote 0
        • Unlyn321U Offline
          Unlyn321
          last edited by

          Hi Scott,

          Thanks for answering this quickly!

          My example was a bit flawed I realise, but the whole document is several thousand lines long and with very distinct “beginning text”.

          It would definitely help, but that still require a lot, a whole lot of manipulation.
          I’ll try it though, maybe after a bit of cleaning my spelling software will be more useful.

          Thanks!

          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