I would like to do some simple parsing within a batch file.
Given the input line:
Foo: Lorem Ipsum 'The quick brown fox' Bar
I want to extract the quoted part (without quotes):
The quick brown fox
Using only the standard command-line tools available on Windows XP.
(I had a look at find and findstr but they don’t seem quite flexible enough to return only part of a line.)
Something like this will work, but only if you have one quoted string per line of input:
Output, quoted string in the middle:
Output, quoted string in the front:
Output, quoted string at the end:
Output, entire string quoted: