Tom Hartland
  • Blog
  • Photos

Find Files in Notepad++ Without Text

How to find all files that do not contain a piece of text using Notepad++

Notepad++ is an excellent tool, and its search is very useful.

Sometimes I need to find when a piece of text has not been used in set of files.

The following regular expression can be used in the search, just replace the {TEXT_HERE} and remember to set the Search Mode to "Regular expression"..

(?s-i)\A(?:(?!\Q{TEXT_HERE}\E).)+\z

Added 29/10/2026 16:35
  • 2026
    • October
      • Find Files in Notepad++ Without Text
    • May
      • TSQL Output Tables
  • 2025
    • July
      • TSQL XML Manipulation
  • 2024
    • October
      • Align SQL Login to User
    • May
      • SQL XML Ordering
  • 2023
    • December
      • Chrome Self-Signed SSL HSTS
    • May
      • String Template Format
    • February
      • Convert List<object> to List<int>
      • URI encoding in Javascript
      • Merging jQuery objects
  • 2022
    • May
      • Listing XML nodes in XSLT
      • XML node value in TSQL
      • Class-less JSON (Newtonsoft)
  • 2021
    • April
      • Variables in TSQL XML
  • 2020
    • March
      • Override Default Mobile Font Size
    • January
      • DNS Info Via Command Line
  • 2019
    • May
      • Restore USB Stick Full Capacity
    • April
      • Removing Entire Unix Directory
    • January
      • Handling 404 Errors in Development
  • 2018
    • November
      • Generating Row Numbers in SQL
    • September
      • Show/Hide via Checkbox and CSS
    • August
      • Javascript Nested Loop Break
    • July
      • CSS "nth-child" Processing
    • June
      • Client-Side Script After UpdatePanel Refresh
      • UpdatePanel Button Click via Javascript
      • ASP.NET Fire Validation
    • April
      • SQL Server CSV From Data
      • SQL Server Dynamic Script Permissions
    • March
      • Purpose of this blog
© 2026 Tom Hartland. All Rights Reserved