藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 http://www.lslnet.com 2006年6月26日 11:18


請教:怎樣用正則表達式匹配除純數字和"true"之外的混合字串?

請教:怎樣用正則表達式匹配除純數字和"true"之外的混合字串?
比如:
12er,fftyf,345#,%yy,(233 -------------匹配
-45,12,456464,23,-789,9,true       --------------不匹配

try:[code]
grep -E -v 'true|[0-9]+' [/code]
具體情況,還要具體分析

謝謝!試試



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com