Community
    • Login

    Certain spaces

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.1k 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.
    • C ALLENC Offline
      C ALLEN
      last edited by C ALLEN

      All '“Test” lines have two spaces before them. I want them to look like this. (removing the 2 spaces before every “T”)

      Test1
      Test2

      Test3
      Test4

      How can I mass do this with the word “Test”, or better yet every single possible word before the very first character on each line?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        You want to remove all leading spaces before every line?

        Search what : ^\s+
        Replace with : (empty string)
        Search Mode: ☑ Regular Expression


        P.S. :
        (paraphrasing @guy038, the forum’s regex guru, who compiled these great regex resources, but hasn’t shared them in this thread yet):

        Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax:

        • http://docs.notepad-plus-plus.org/index.php/Regular_Expressions

        Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8):

        • search syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
        • replace syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

        Other sites with valuable regular expression information include:

        • http://perldoc.perl.org/perlre.html
        • http://www.regular-expressions.info
        • http://www.rexegg.com
        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