网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   Office (https://www.0058.net/forumdisplay.php?f=86)
-   -   Dreamweaver 正则替换行号 (https://www.0058.net/showthread.php?t=4980)

Neosho Falls 2015-01-26 11:20 AM

Dreamweaver 正则替换行号
 
我们在网上找代码时有时候会遇到这样的情况,如下
Code:

01.<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
02.<html> 
03.<head> 
04.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
05.<title>Insert title here</title> 
06.</head> 
07.<body> 
08. 
09.描述:${description} 
10.<br/> 
11.集合大小:${nameList?size} 
12.<br/> 
13.迭代list集合: 
14.<br/> 
15.<#list nameList as names> 
16.这是第${names_index+1}个人,叫做:<label style="color:red">${names}</label> 
17.if判断: 
18.<br/> 
19.<#if (names=="陈靖仇")> 
20. 他的武器是: 十五~~ 
21.<#elseif (names=="宇文拓")>      <#--注意这里没有返回而是在最后面--> 
22. 他的武器是: 轩辕剑~· 
23.<#else> 
24.她的绝招是:蛊毒~~ 
25.</#if> 
26.<br/>

这时,我们如果要一个一个删除就太麻烦了,Dreamweave给我们提供了便捷的功能,可以用正则替换直接一键搞定。
ctrl+f, 查找: \d+\.
选中正则表达式
运行就可以了

注意是:

\d+\.


All times are GMT +8. The time now is 06:28 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.