用于最大字符的正则表达式? [英] Regular Expression for maximum characters?
本文介绍了用于最大字符的正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个正则表达式,允许文本字段中包含1-5000的字符,包括空格.我正在使用此正则表达式
Hi,
I need a regular expression which would allow characters from 1-5000 in text field including spaces. I am using this regular expression
"^[a-zA-Z0-9#£$&%+*-., !@()\\s]{1,5000}$
它也不允许保存精确的5000,但略多于4000.
请帮助
It is also not allowing to save exact 5000 but slightly more than 4000.
Please help
推荐答案
&%+ *-.,!@()\\ s] {1,5000}
&%+*-., !@()\\s]{1,5000}
它也不允许保存精确的5000,但略多于4000.
请帮助
It is also not allowing to save exact 5000 but slightly more than 4000.
Please help
codeproject的这篇文章对您有帮助
在javascript中检查多行文本框的最大长度 [ ^ ]
如果它对您有所帮助,请接受答案.然后投票
This article from codeproject will help you
Check maxlength of multiline textbox in javascript[^]
Accept the answer if it has helped you. And Vote it
这篇关于用于最大字符的正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文