在java模式中可以使用regex global g标志吗?我们在java中有什么解决方法吗?我的正则表达式是:
private final String regex ="(public|private|protected|static|final|abstract|synchronized|volatile[\\s\\w\\s,\\w]*\\{[\\n\\t]*(.+)[\\n\\t]*((return|throw){1}\\s*)(\\w*)\\s*;\\
我使用正则表达式表示我的句子包含项目符号、数字和点。• 2.This is Sample java program•\\s\\d\\.\\s[A-z]
This is sample Application.This is Sample java program.
这不是working.Please建议我怎么做。
但是我的正则表达式不知何故不能工作,有人能指导我检测错误吗?They use cornmeal in the crust, or on the baking surface, so there's a bit of extra crunch to it.\\S+(?=[a-z])/i");
但它并没有拆分句子。有人能发现这个错误吗?