随笔分类 -  正则表达式

摘要:\w{8}(-\w{4}){3}-\w{12} 阅读全文

posted @ 2017-06-29 10:13 张缤分 阅读(9557) 评论(0) 推荐(1)

摘要:import com.eviware.soapui.support.GroovyUtils import java.util.regex.* //Get response def groovyUtils = new GroovyUtils( context ) def holder = groovyUtils.getXmlHolder( "addSecurity#ResponseAsX... 阅读全文

posted @ 2017-04-05 15:26 张缤分 阅读(1642) 评论(0) 推荐(0)

摘要:/^[\w\?%&=\-_]+$/ 说明:(1) \w 代表 0-9a-zA-Z 即数字、字母(2) \?%&=\-_ 匹配?%&=-_,而正则中?代表0个或1个,因为是特殊字符,加转义为\?,正则中-代表多少到多少,如0-9,因此也是特殊字符,加转义为\-,(3) +代表1个以上字符,也就是[\w... 阅读全文

posted @ 2013-09-16 16:39 张缤分 阅读(1227) 评论(0) 推荐(0)

导航