Community

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

    Regex: Select all files that contain blank spaces between tags

    General Discussion
    2
    3
    1149
    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 Caraus
      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 Sumner 1 Reply Last reply Reply Quote 0
      • Scott Sumner
        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 Caraus
          Vasile Caraus last edited by

          Thanks a lot, Scott:

           </p>\s+<!--
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors