JAVA使用正則表達式 性能問題

JAVA使用正則表達式必須預編譯,建議使用oro庫正則表達式   private static String  regex   = "^[a-zA-Z][a-zA-Z0-9_]{0,50}$";編譯 private static Pattern pattern = new Perl5Compiler().compile(regex, Perl5Compiler.READ_ONLY_MASK方法  
相關文章
相關標籤/搜索