开发者

MongoRegex decimal number problems [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. 开发者_运维问答 Closed 11 years ago.

I need search prices which contains number 2 in start and after . 00-99, but it find prices like 12.00, 25.99, 2.00, 2.28 not only 2.00, 2.28. Is any idea how fix this problem? Thanks.


the regex to do this is simply:

/\A2\.[0-9]{2}\Z/
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜