Java通过编译带有标志的Pattern将regex与自定义行为一起使用