阅读背景:

仅作为标点符号匹配的Javascript正则表达式,没有数字

来源:互联网 

I'm trying to write a regex to split a sentence into words. My first thought was to split on spaces or punctuations then I realized that I don't want to split a number with decimals like "0.5" and I don't want to split a timestamp like "14:55:02". So, I tried to fix my problem with negative lookahead and negative lookbehind, but I'm not able to put them together... And lookbehind doesn't seem to be supported in javascript.I'm trying to write a regex to split a sentence




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: