且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我们可以在java中使用正则表达式检查多个模式吗?

更新时间:2023-11-09 17:52:28

你可以完全按照你的方式去做,用管道分隔两个+表达式

You can do it exactly the way you did, with pipe separating the two+ expressions

例如:常规表达式(abc)|(def)将匹配 abc def

For instance: The regular expresion (abc)|(def) would match abc OR def