Edit: So here is a sample of what I have after using BareGrep. The txt doc has about 1000 questions I've created over the years. I've removed the exact answers but I need a tool and syntax to remove the explanations. I use Mac OS 10 and Windows 7/XP.
QUESTION 19:
Why must you blah and blah?
A. So you can blah.
B. So you can blah.
C. So you can blah.
D. So you can blah.
The reason the answer is blah is blah.
QUESTION 20:
When should you blah blah?
A. When you can blah.
B. Where you can blah.
C. Blah you can blah.
D. All of the blah.
The 开发者_StackOverflow社区reason the answer is not blah is blah.
regex for Perl:
/QUESTION(.+?)Answer/s
精彩评论