0

我正在处理几百个 XML 文件,而创建它们的工具往往(令人讨厌)忽略源内容中的段落中断。因此,您会在 XML 文件中得到很多这样的信息:

... tradition of storytelling.Advertisers, TV programmers ...

看看这句话是如何以没有空格的“storytelling.Advertisers”结尾的?

我需要将其替换为:

... tradition of storytelling.</p><p>Advertisers, TV programmers ...

任何人都可以用适当的表达方式帮我处理这个问题吗?谢谢!

4

1 回答 1

0

选中对话框Regular expression中的Replace框。利用

(.*\.)([A-Z])

Find what, 和

\1</p><p>\2

Replace with.

鉴于此文本:

tradition of storytelling.Advertisers, TV programmers,
tradition of storytelling".Advertisers, TV programmers,
tradition of storytelling'.Advertisers, TV programmers,
tradition of storytelling).Advertisers, TV programmers,

Replace All使用上述值导致

tradition of storytelling.</p><p>Advertisers, TV programmers,
tradition of storytelling".</p><p>Advertisers, TV programmers,
tradition of storytelling'.</p><p>Advertisers, TV programmers,
tradition of storytelling).</p><p>Advertisers, TV programmers,
于 2013-07-22T16:20:56.780 回答