开发者

ASP.NET Regular Expression needed for checking valid DB DataType of Money

开发者 https://www.devze.com 2023-03-26 00:04 出处:网络
Hey Looking for a regular expression which I can use to check for valid DB types of Money. I.e. Examples

Hey Looking for a regular expression which I can use to check for valid DB types of Money.

I.e. Examples

9.8600 11.5400

Che开发者_运维问答ers


\d+.\d{4}

Would match the two examples you give.

Regex.IsMatch("11.5400 ", @"\A\d+.\d{4}\Z");
0

精彩评论

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

关注公众号