开发者

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

开发者 https://www.devze.com 2023-03-22 18:46 出处:网络
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.

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

精彩评论

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

关注公众号