段落的正则表达式 [英] regular expression for paragraph

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

问题描述

我想在一个不包含数据的文本框上设置validatior,而不是包含空白的140个letor

I want to set validatior on a text box which not contain data more then 140 letors with white space

推荐答案

TextBox具有一个名为MaxLength的属性.
将该属性的值设置为140,就可以完成.
TextBox has a property called MaxLength.
Set the value of this property to 140 and you are done.


此正则表达式将执行...
[s \ S] {0,140}
This regular expression will do...
[s\S]{0,140}


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

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