• Login
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.
  • V
    Vasile Caraus
    last edited by Dec 13, 2017, 5:13 PM

    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)

    S 1 Reply Last reply Dec 13, 2017, 6:43 PM Reply Quote 0
    • S
      Scott Sumner @Vasile Caraus
      last edited by dail Dec 13, 2017, 6:53 PM Dec 13, 2017, 6:43 PM

      @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
      • V
        Vasile Caraus
        last edited by Dec 13, 2017, 7:39 PM

        Thanks a lot, Scott:

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