• Login
Community
  • Login

Want to check spaces

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 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.
  • M
    Mampi Bordoloi
    last edited by Sep 25, 2024, 6:18 PM

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

    P 1 Reply Last reply Sep 25, 2024, 6:31 PM Reply Quote 0
    • P
      PeterJones @Mampi Bordoloi
      last edited by Sep 25, 2024, 6:31 PM

      @Mampi-Bordoloi ,

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

      M 1 Reply Last reply Sep 25, 2024, 6:44 PM Reply Quote 0
      • M
        Mampi Bordoloi @PeterJones
        last edited by Sep 25, 2024, 6:44 PM

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

        T 1 Reply Last reply Sep 25, 2024, 7:15 PM Reply Quote 0
        • T
          Terry R @Mampi Bordoloi
          last edited by Sep 25, 2024, 7:15 PM

          @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
          • M
            Mark Olson
            last edited by Mark Olson Sep 25, 2024, 7:34 PM Sep 25, 2024, 7:33 PM

            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.

            M 1 Reply Last reply Sep 25, 2024, 8:52 PM Reply Quote 2
            • M
              Mampi Bordoloi @Mark Olson
              last edited by Sep 25, 2024, 8:52 PM

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

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