codewars-019: Mod4 Regex

https://www.codewars.com/kata/54746b7ab2bc2868a0000acf/train/javahtml

//-- https://www.codewars.com/kata/54746b7ab2bc2868a0000acf/train/java
import java.util.regex.Pattern;
public class Mod{
  public static Pattern mod4 = Pattern.compile(".*\\[[+-]?0*(\\d*([13579]{1}[26]{1}|[02468]{1}[048]{1})|0|4|8)\\].*");
}

To advance:java

http://www.cnblogs.com/China3S/archive/2013/11/30/3451971.htmlcode

http://www.cnblogs.com/bvbook/archive/2010/11/03/1867775.htmlhtm

相關文章
相關標籤/搜索