我想使用 UltraEdit 正则表达式 (perl) 将以下文本替换为一堆 html 文件中的其他文本:
<style type="text/css">
#some-id{}
.some-class{}
//many other css styles follow
</style>
我尝试使用<style type="text/css">.*</style>
,但当然它不会匹配任何内容,因为点匹配除换行之外的任何字符。我也想匹配换行符,换行符可能是\r\n
或\n
。
正则表达式应该是什么样子的?
非常感谢大家。