假设我有以下文本,我想提取“数字开头”和“数字结尾”之间的文本有动态数量的行和唯一改变其中数字的内容,例如:第一、第二等.我将从中提取数据的每个文件在“数字开头”和“数字结尾”之间的行数不同。如何编写正则表达式来匹配“数字开头”和“数字结尾”之间的内容,而不知道文件中有多少行介于数字开头和“数字结尾”之间?
问候!
This is the first line This is the second line
Start of numbers
This is the first line
This is the second line
This is the third line
This is the ...... line
This is the ninth line
End of numbers