Community
    • Login

    Regex: Select all files that contain blank spaces between tags

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.4k 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.
    • Vasile CarausV
      Vasile Caraus
      last edited by

      hello. I have this type of tags:

      `</p>`
          
      CONTENT.....
      
      `<!-- * * * * *ALL LIKES * * * * * --> `
      

      and

      `</p>`
          
      
      `<!-- * * * * *ALL LIKES * * * * * --> `
      

      I want to select all files that contain blank spaces between </p> and <! -- tags (the second example above)

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @Vasile Caraus
        last edited by dail

        @Vasile-Caraus

        You have been doing regular expressions long enough to know that this will match your desired text and not your undesired text:

        `</p>`\s+`<!--
        

        Make it longer if you want with the * * * * *ALL LIKES * * * * * --> text at the end…

        select all files

        If that means anything besides “put all hits in the Find-result panel” then please elaborate.

        1 Reply Last reply Reply Quote 0
        • Vasile CarausV
          Vasile Caraus
          last edited by

          Thanks a lot, Scott:

           </p>\s+<!--
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors