识别字符串中粗体字符的java模式匹配
我需要解析这个字符串并从中提取粗体数字。 我没有适合你的正则表达式 1.useInput可以是 =“0067711990999999*1955*05150709999999999n9+01*23*1+9999999.”
Pattern pattern;
String regex="\\s*-?\\d+(?:\\s*[-+/*]\\s*-?\\d+)+\\s*";
pattern=Pattern.compile(regex);
Matcher match = pattern.matcher(userInput);
问题是我找不到任何与粗体字符串匹配的正则表达式
我需要一个地图缩小程序
谢谢
# 1 楼答案
下面的代码
将打印
这就是你要找的吗
# 2 楼答案
如果你在读书。odt文件,也许http://www.jopendocument.org/是一条出路