社区
Java SE
帖子详情
求按空格,逗号,中文逗号分隔的正则表达式
ggzzkk
2007-04-08 12:04:14
谢谢
...全文
1324
9
打赏
收藏
求按空格,逗号,中文逗号分隔的正则表达式
谢谢
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
ggzzkk
2007-04-10
打赏
举报
回复
\\s*,\\s*|\\s+
这样可以处理空格,逗号分隔,但不包括中文逗号。中文逗号要怎么写呢??
ggzzkk
2007-04-10
打赏
举报
回复
不行啊
suxq126
2007-04-10
打赏
举报
回复
\\s*,\\s*|\\s+
这样可以处理空格,逗号分隔,但不包括中文逗号。中文逗号要怎么写呢??
==========================
中文逗号就用中文输入法输一个逗号。
zhaochunhui
2007-04-10
打赏
举报
回复
"a,b c,d".split("[\\s]|[ ]|[,][,]");
api工厂
2007-04-10
打赏
举报
回复
string.split(" +|[,,]")
这样就行了,直接敲一个空格
malligator
2007-04-10
打赏
举报
回复
string.split("\\s+|[,,]")
tttk
2007-04-08
打赏
举报
回复
[ ,,]
malligator
2007-04-08
打赏
举报
回复
:)
"[\\s,,]"
家有萌宝V
2007-04-08
打赏
举报
回复
能说具体点吗
66 Plus One
66 Plus One链接:https://leetcode.com/problems/plus-one/ 问题描述: Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant
LeetCode 66. Plus One
LeetCode 66. Plus One Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most significant digit is at the head of the l...
[Leetcode]66.Plus One
[leetcode] 66. Plus One题目链接:https://leetcode.com/problems/plus-one/Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most signifi
LeetCode 66. Plus One
题目来源:https://leetcode.com/problems/plus-one/ 问题描述 66.Plus One Easy Given anon-emptyarray of digitsrepresenting a non-negative integer, plus one to the integer. The digits are stored such that...
Leetcode 66. Plus One 加一
Leetcode 66. Plus One 加一 标签: Leetcode 题目地址:https://leetcode-cn.com/problems/plus-one/ 题目描述 给定一个由整数组成的非空数组所表示的非负整数,在该数的基础上加一。 最高位数字存放在数组的首位, 数组中每个元素只存储一个数字。 你可以假设除了整数 0 之外,这个整数不会以零开头。 示例 1: 输入: [...
Java SE
62,620
社区成员
307,251
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章