• 3961阅读
  • 0回复

正则表达式的问题 [复制链接]

上一主题 下一主题
离线roc496
 
只看楼主 倒序阅读 楼主  发表于: 2009-01-22
— 本帖被 XChinux 执行加亮操作(2009-01-22) —
如下
我想下面代码中的<img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image002.jpg" width="648" height="508" />其中所有的\替换为/
其他的文字部分的\不变
用正则表达式怎么处理?
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'宋体'; font-size:10pt; font-weight:400; font-style:normal;">
<p align="center" style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large; font-weight:600;"><span style=" font-size:x-large; color:#000000;">向三维进军\\\\\</span></p>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src="file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/msohtml1/01/clip_image002.jpg" width="648" height="508" /><span style=" font-size:11pt; color:#000000;">\\在上一课的内容上作些扩展,\我们现在开始生成真正的三维对象,而不是象前两节课中那样在三维世界中的二维对象。我们给三角形增</span></p></body></html>
快速回复
限100 字节
 
上一个 下一个