I have a single text file. It's a multiple choice exam. In it are several hundred questions, each with four answer choices, one per line, that start with A. B. C. D.
After each A. (and B. etc) should be a single space, then immediately the first char of question text. Like this:
++++++++++++++++++++++++++++++++ This is my question text? A. Choice 1 B. Choice 2 C. Choice 3 D. Choice 4 ++++++++++++++++++++++++++++++++
I want to find all lines that start with a A. that have something other than a single space (a different char OR, say, two or more spaces) before the first character of the answer choice. Then do the same for B. C. and D.
I want to differentiate between the "OK" and "not OK" lines.
A.<space><any char not a space> is OK.
A.ABC not OK. A.123 not OK. A. ABC not OK A. 123 OK. A. ABC OK.
I want to locate all "not OK" lines.
/ end of edit