This action will force synchronization from 西瓜998/Java学习1, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
import java.util.regex.Matcher;import java.util.regex.Pattern;public class Print {public static void main(String[] args) {String w="此前,全球咨询公司艾睿铂(AlixPartners)发布的《2021"双十一"前瞻报告》显示,半数受访消费者预计今年"双十一"将花费超过3000元人民币。而据亿邦动力对外发布的《2021品牌企业双十一大促洞察报告》显示,半数以上品牌商家预计今年,双十一成交吵1000万,其中预估成交超1亿元人民币的商家占比13.16%。";String regex ="-?[1-9][0-9]*[.]?[0-9]*";Pattern pattern=Pattern.compile(regex);Matcher matcher=pattern.matcher(w);while(matcher.find()) {System.out.println("上述新闻中所有数字为:"+matcher.group());}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。