开发者

Regular Expression to identify string containing dot(s), excluding dot(s) in double quotes

I want to mat开发者_JAVA技巧ch strings that contains dot(s) ., complexity is, it should not consider dot(s) that are enclosed in double quotes.

<<8001_011._>>[01990.a|c01]+<<8001_011._>>[01990.b|c.01] Match

[01990.a|c01]+[01990|c.01] Match

"a" + "$.1" + $1 + "b" NOT Match, dot is enclosed in quotes.


Try to use this expression

([^."]*"[^"]*")*[^."]*\..*
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜