Findstr regex or txt Using the wildcard character matches the regex to all text files in the current directory and its subdirectories. It offers powerful options for text searching, including case insensitivity, use of regular expressions, and recursive searches through directories. Findstr supports a limited version of regular expressions. May 7, 2012 ยท If you just want to find two consecutive spaces: findstr /C:" " input. txt Display the line number before each matching line: findstr /n "{{string1 string2 }}" * Display only the filenames that contain a match: FINDSTR - Searching across Line Breaks FINDSTR breaks lines immediately after every <LF>. * Find strings in all files using regular expressions: findstr /r "{{expression}}" * Find a literal string (containing spaces) in all text files: findstr /c:"{{string1 string2 }}" *. Running in a command prompt window findstr /? results in getting displayed help for this console application listing also the supported regular expression characters with their meanings. In particular I'd like to validate integers. h or . txt): BLA BLA BLA BLA BLA Found 11 errors and 7 warnings I perform this command: findstr /r "[0-9]+ errors" test. tifareqonazauorkdojkqhewshvfmihflvxypwttvipvicirngldwgjsgggakfbnytqeowxhzoeaabvuaeqvgv