Community
    • Login

    Want to check spaces

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 1.0k 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.
    • Mampi BordoloiM
      Mampi Bordoloi
      last edited by

      Hello. I have a notepad file and i want to check the spaces between words. How can i? Please help,

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Mampi Bordoloi
        last edited by

        @Mampi-Bordoloi ,

        Depending on what exactly you mean by “check spaces”, I think View > Show Symbol > Show spaces and tabs will be useful.

        Mampi BordoloiM 1 Reply Last reply Reply Quote 0
        • Mampi BordoloiM
          Mampi Bordoloi @PeterJones
          last edited by

          @PeterJones Thank you so much for your response. I mean to say that i want to find out the spaces(tabs) in between the words of a sentence.

          Terry RT 1 Reply Last reply Reply Quote 0
          • Terry RT
            Terry R @Mampi Bordoloi
            last edited by

            @Mampi-Bordoloi said in Want to check spaces:

            I mean to say that i want to find out the spaces(tabs) in between the words of a sentence

            Unfortunately that doesn’t help anyone help you.

            Do you:

            1. want to delete spaces between words?
            2. convert multiple spaces into a single space?
            3. change the spaces into another character?
            4. something else?

            Are you using Google translate, because that might assist? Type the question in your language, use Google translate to convert to English and post it here.

            Terry

            1 Reply Last reply Reply Quote 1
            • Mark OlsonM
              Mark Olson
              last edited by Mark Olson

              It sounds to me like what you want is to check if there are multiple spaces or tabs between words. For that purpose, the regular expression (?:(?![\r\n])\s){2,} should do what you want.

              Just use the Mark all form (Ctrl+M with default keybindings), check Purge after each search, set Search Mode to Regular expression, enter (?:(?![\r\n])\s){2,} into the text box and hit Mark All. Then all multi-space sequences will be colored red.

              This regular expression finds any sequence of two or more consecutive space characters other than newlines.

              Mampi BordoloiM 1 Reply Last reply Reply Quote 2
              • Mampi BordoloiM
                Mampi Bordoloi @Mark Olson
                last edited by

                @Mark-Olson Exactly what i mean. Thank you so much ❤️ for your help

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