Answer the question
In order to leave comments, you need to log in
How to slip a regular expression into the WINDOW command line?
Hello
There is a FINDSTR command in the wilds of Windows .
And there is the regular expression I need (\"|\')[А-Яа-яЁ-ё\d\s]+(\"|\').
And everything would be fine, but this bad woman, when trying to run findstr with this regular expression, answers that "the system cannot find the specified path", although I do not suggest that she go anywhere. In general, nowhere, even three letters.
findstr (\"|\')[А-Яа-яЁ-ё\d\s]+(\"|\') *.php > 1.txt
Системе не удается найти указанный путь.
findstr [А-Яа-яЁ-ё] *.php > 1.txt
Answer the question
In order to leave comments, you need to log in
There are several regexp standards. and MS isn't particularly eager to standardize their regular expressions with the common PCRE or whatever. In the same Word, he generally has something of his own.
Therefore, read the findstr documentation and write a regular expression that it can parse.
Better yet, install git, which comes with a bunch of normally ported linux utilities, and use grep
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question