Community
    • Login

    How to extract just "text" with notepad

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 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.
    • Unlyn321U
      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
        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
          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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors