开发者

regex double number

开发者 https://www.devze.com 2023-01-29 19:27 出处:网络
here we go. i want to have regex for double number. but not only numbers separated with comma, i want to check, is it double? i mean in .net for double we have 64-bit only. how can i check it in regex

here we go. i want to have regex for double number. but not only numbers separated with comma, i want to check, is it double? i mean in .net for double we have 64-bit only. how can i check it in regex? and i dont want to do double.trypa开发者_运维百科rse().


Regex doesn't see numbers as a datatype

It can only parse the text in front of it. If you're looking for a number with a decimal point - then your regex will be checking for a number with a decimal point.

Parhaps you should rearrange your question to reflect this

0

精彩评论

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