阅读背景:

使用简单的java代码提取css属性值

来源:互联网 

Please check following code.

请检查以下代码。

Pattern pxPattern = Pattern.compile("^.*[0-9]+(%|pt|em).*$");
Matcher pxMatcher = pxPattern.matcher("onehellot455emwohellothree");
System.out.println(pxMatcher.matches());
System.out.println(pxMatcher.group(0));
Patte



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: