这是我的输入文本
1. INTRODUCTION
This is a test document. This document lines can span multiple lines.
This is another line.
2. PROCESS
This is a test process. This is another line.
3. ANOTHER HEADING
...
我想提取主标题 1、2、3 等之间的文本。我使用此正则表达式来匹配标题 - ^[ ]{0,2}?[0-9]{0,2}\\.(.*)$
如何提取匹配之间的文本?
最佳答案
关于java regex Matcher提取匹配之间的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30868613/