INR格式的具有多个逗号(例如货币)的数值的正则表达式 [英] Regular Expression for Numeric value with multiple comma like currency in INR format

查看:86
本文介绍了INR格式的具有多个逗号(例如货币)的数值的正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请向我提供允许使用多个逗号(例如印度货币格式)的数字正则表达式的解决方案

输出经验1,21,31,456


谢谢

Hi,

Please provide me solution of regular expression for numeric value which allow multiple comma''s like indian currency format

output exp. 1,21,31,456


thanks

推荐答案



最好使用过滤器文本框,您可以在其中指定所需的字符




better to use filter text box where you can specify the character you need


<cc1:filteredtextboxextender id="FilteredTextBoxExtender4"  runat="server" filtertype="Numbers">
                                                            TargetControlID="txtGsmNo">
                                                        </cc1:FilteredTextBoxExtender></cc1:filteredtextboxextender>


尝试此链接
http://stackoverflow.com/questions/1359147/regex-for-comma-separated-number [ ^ ]
try this link
http://stackoverflow.com/questions/1359147/regex-for-comma-separated-number[^]


使用此正则表达式: ^ \ d +([,] \ d +)*
Use this regex: ^\d+([,]\d+)*


这篇关于INR格式的具有多个逗号(例如货币)的数值的正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆