I have read How to write a search pattern to include a space in findstr? and I thought the character class should solve my problem.
I came up with the following minimal reproducible example:
echo 1.999 K| findstr /R "\....[ ]K"
I expect \.
to match the dot, ...
to match 999, [ ]
to match the space and K
to match K. However, there's no output.
When I do
echo 1.999 K| findstr /R "\.... K"
it will be interpreted as 2 individual search terms, which I can't use, because I need the K to be after the number (compare to echo K 1.999 M| findstr /R "\.... K"
)
I'm on Windows 10 1903 18362.1016 if that matters.