正则表达式请求 [英] Regular Expression request

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

问题描述

我希望用户在文本框中输入四个或更多单词,并且它是可选的
是否有正则表达式.
请帮助

I want the user to enter four or more words in a TextBox and It''s optional
Is there a regular expression for that.
please Help

推荐答案


尝试使用以下表达式:

Try this expression:
ValidationExpression="^.{4,}


"



要了解常规技能,请阅读此文章:
轻松学习正则表达式(RegEx) [ ]



for learn regular expersions read this article :
Learn Regular Expressions (RegEx) with Ease[]


你好,

在单击按钮时使用此JS.
Hi there,

Use this JS in your button click.
function countWords(){
   var txt=


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

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