正则表达式 | 您所在的位置:网站首页 › 今天是哪的集市 › 正则表达式 |
.*? 贪婪匹配 例: 规则:src=".*?"结果:src="test.jpg" .*+ 多匹配 例:Send personal email to [email protected] [email protected] . For questions about abook use [email protected] . If your messageis urgent try [email protected] . Feelfree to send unsolicited email [email protected] (wouldn't it be nice ifit were that simple, huh?). 规则:[\w.]+@[\w.]+\.\w+ 结果 Send personal email to [email protected] [email protected] . For questions about abook use [email protected] . If your messageis urgent try [email protected] . Feelfree to send unsolicited email [email protected] (wouldn't it be nice ifit were that simple, huh?). |
CopyRight 2018-2019 实验室设备网 版权所有 |