English 中文(简体)
need 要求发出上下级信函的许可
原标题:need a JavaScript Regex that requires upper or lowercase letters

我现在只允许下级信函,我需要的是要求下级或上级信函的:

/(?=.*[a-z])/
最佳回答

Try /(?=*[a-z]/i

请注意i,因此该表述不敏感。

问题回答

You Can’t Get There from Here

现在我只允许下级信函,我需要的是要求下级或上级信函的:/(?=*[a-z])/

不幸的是,它是。 见rel=“nofollow noreferer”>,该数字是lavt cannot。

Theory vs Practice

下几例的恰当模式是统法协会衍生的双轨财产标准编码p{Lowercase},上级的适当模式是p{Uppercase}。 这些是规范性质,有时在某些外来情况下包括非字母。

仅使用普通类特性,可有<代码>p{Ll},供下级_Letter使用,p{Lu}, 供上一级_Letter使用,p{Lt}, 供所有权书使用。 请更正为3在Unicode中,而不是2。 标准内容如下:p{LC},系指[p{Lu}p{Lt}p{Ll}]

如果你想要的是not的下几封信,你可以使用<代码>(?=P{Ll})pL。 长期书写:<代码>(?=P{Lowercase_Letter})p{Letter}。 同样,其他一些“Lowercase”密码点中的这些组合也承认:p{Lowercase}。 我必须再次强调,下游财产是下游不动产的顶点。

删除前一段,在各地的顶端打捞 我写的文字较低,你们对首都也一样。

Possible Platforms

由于获得这些基本特性是,有些版本的 Java稿仅以我上述方式加以实施。 然而, Java印标准仍不要求它们,因此,一般不能算在内。 这意味着,在 Java稿的所有执行中,不可能做到正确。

• 尽可能少用的语言包括:

  • C♯ and Java (both only General Categories)
  • Ruby if and only if v1.9 or better (only binary properties, including General Categories)
  • PHP and PCRE (only General Category and Script properties plus a couple extras)
  • ICU’s C++ library and Perl, which both support all Unicode properties

在所列船只中,只有最后一行——伊斯兰法院联盟和Perl——严格和完全满足所有第1级合规要求(加上某些2级和3级),以妥善处理统法协会编码。 然而,我上段子弹中列举的所有我方能够轻易地处理你们所需要的大多数,很可能是所有。

然而, Java印并非其中之一。 但是,如果你非常幸运,也永远不能在标准的 Java字平台上运行,那么你的话就行了。

Summary

令人非常悲哀的是,you不能真正使用 Java印规范,用于Unicode的工作,除非您没有标准延期。 有些人这样做,但大多数不是。 如果你不这样做,你可能就必须使用一个不同的平台,直到与21世纪相赶的相关《欧安会标准》(第3.1号,十年前!)为止。

不能确定你指的是混合案件,或严格地将案件排在上。

这里有混合版本:

/^[a-zA-Z]+$/

严格意义上的单一或其他版本:

/^([a-z]+|[A-Z]+)$/

或者在座标上加一层:

/(?=.*[a-zA-Z])/




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签