I need a regex fo开发者_JAVA百科r String.replaceAll(...)
in Java to remove brackets and their contents.
For example:
hello(100)
to:
hello
Try this
theString.replaceAll("\\(.*?\\)", "")
I need a regex fo开发者_JAVA百科r String.replaceAll(...)
in Java to remove brackets and their contents.
For example:
hello(100)
to:
hello
Try this
theString.replaceAll("\\(.*?\\)", "")
hu开头的成语有哪些啊??:下一篇
精彩评论