我需要从两个分隔符之间的文件中提取文本并将其复制到TXT文件。此文本看起来像XML代码,而不是分隔符<string> text... </string>
,我有:::SOURCE text .... ::::SOURCE
。正如您在第一个分隔符中看到的那样是':'的3倍,而第二个是':'
最重要的是这两个分隔符之间有多行。
文字示例:
texttexttexttexttexttexttexttexttext
texttexttexttext
:::SOURCE
just this text
just this text
just this text
just this text
...
just this text
::::SOURCE texttext
texttexttext
期望的输出:
just this text
just this text
just this text
just this text
...
just this text