本文介绍了用于最大字符的正则表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要一个正则表达式,允许文本字段中包含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

推荐答案



它也不允许保存精确的5000,但略多于4000.
请帮助


It is also not allowing to save exact 5000 but slightly more than 4000.
Please help



这篇关于用于最大字符的正则表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 23:55