帮助正则表达 [英] help on regular expression
本文介绍了帮助正则表达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要一个正则表达式验证除了
空白值(所以至少有一个字符)和非字母数字/ >
个字符。我该怎么做?
谢谢
Hi,
I''d like to have a regular expression that validates everything but
blank values (so at least one character) and non alphanumeric
characters. How would I do it ?
thanks
推荐答案
sa ************* @ googlemail.com 写道:
sa*************@googlemail.com wrote:
我想要一个正则表达式验证除了
空白值(所以至少有一个字符)和非字母数字
个字符。我该怎么办?
I''d like to have a regular expression that validates everything but
blank values (so at least one character) and non alphanumeric
characters. How would I do it ?
这个网站是RegEx的一个很好的参考:
http://regular-expressions.info/index.html
别人可以纠正我有限的表达经历,
但这里的这个似乎符合你的标准:
^ \ w *
This site is a good reference for RegEx:
http://regular-expressions.info/index.html
Someone else can probably correct my limited experience of expressions,
but this one here seems to satisfy your criteria:
^\w*
你好Bobbo,
事情是我一直在尝试不同的组合,包括你的b
,但是我总是得到以下错误:
预期''/''
这是怎么回事?
Hi Bobbo,
The thing is that I''ve been trying different combination, including
yours, but i always end up with the following error :
Expected ''/''
what is that all about ??
这篇关于帮助正则表达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文