网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站设计 > CSS, DIV, HTML
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 49.87.51.222
Old 2015-01-14, 09:45 AM
Hackleburg Hackleburg is offline
初级会员
 
Join Date: 2010-03-16
Posts: 3
Hackleburg 现在声名狼藉
Default 用正则表达式清除dreamweaver代码中多余的空行

很多时候,我们在dreamweaver中制作网页,会发现代码中有很多空行,让人看起来很不习惯,其实这是因为正则表达式错误所致,下面我们用表达式替换的方法来消除多余的空行。

使用正则表达式搜索:\r\n\s*\r\n即可搜到代码中的空行,再用回车符\n替换即可消除代码中的多余空行
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:44 AM.


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