开发者

Help with Parsing Multiline and Tool suggestions:

开发者 https://www.devze.com 2023-03-20 13:42 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消