Home
Sign Up
Sign In
›
正则表达式可视化调试 regex101.com
V2EX
›
正则表达式
请教一个正则问题
hourann
·
May 7, 2018
via iPhone · 2528 views
This topic created in 3046 days ago, the information mentioned may be changed or developed.
一段文本,有可能的标点符号有 :,; 怎么匹配出所有:前的字符
a:b,c,d:e;fg:h 匹配出 a、d、fg
注:会出现中文文本,不要用\w
文本
正则
标点符号
匹配
2 replies
•
2018-05-07 17:40:31 +08:00
1
DavidNineRoc
May 7, 2018
1
([\w\u4e00-\u9fa5]+?)\:
2
lululau
May 7, 2018
PCRE:
.(?=:)
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
5204 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 62ms ·
UTC 03:47
·
PVG 11:47
·
LAX 20:47
·
JFK 23:47
♥ Do have faith in what you're doing.
❯