[英]Regular expression to match all alphabets, whitespace and a colon
我需要一个匹配的正则表达式,包含所有单词,然后是空格,后跟冒号
[All alphabets][whitespace][colon]
可以在Ruby,Perl,JavaScript,.Net中使用以下模式
[a-zA-Z]+\\s+:
Perhaps this: 也许这:
[a-zA-Z]+[\W];
This works matches like so: 如此匹配的作品如下:
test ;
test2 ;
this doesnt work however this does ;
这不能工作,但是
does ;
work ;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.