Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    remove multiple spaces between numers for : (help needed)

    Help wanted · · · – – – · · ·
    2
    4
    132
    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.
    • GOoOl Channel
      GOoOl Channel last edited by

      37802366-6368-44bd-b585-27981ce95459-image.png

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @GOoOl Channel last edited by

        @GOoOl-Channel ,

        For something that simple, even if you don’t know regex, you could do a few simple search-and-replace… Search for a bunch of spaces, replace with single colon, replace all. Repeat with one fewer space until all done.

        Or study npp-user-manual.org/docs/searching/, and find the simple regex \s+, replace with:, replace all.

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

          That’ll match newlines. Use \h+ instead. Sorry

          1 Reply Last reply Reply Quote 1
          • PeterJones
            PeterJones last edited by

            discussion moved to here

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors