English 中文(简体)
至少10种特性的定期表述
原标题:Regular expression for at least 10 characters
  • 时间:2010-12-01 15:31:36
  •  标签:
  • regex

我需要一种定期的表述,以检查扼杀至少10个性。 这不是这些性质。

增 编

问题回答

您可以使用:

.{10,}

http://www.un.org/Depts/DGACM/index_french.htm 如果没有新路线,你就不得不使用合适的调制器(如果得到您的舱面发动机的支持)制作<代码>。 例例见:s modifier。

Alternatively you can use [sS] or [dD] or [wW] in place of .

这将与任何10个特性相匹配,包括新路线:

[sS]{10,}

(In general, . does not match newlines.)

您重新使用的语言是否具有一定长度的功能(或具有这种功能的图书馆)? 落实你自己是否非常困难? reg看起来过高,但你只能使用{10,}等东西。 如果你真的想要的话。 在拥有长期功能的园艺园中,它可能会看上像<条码>if(str.length()>10) lenGeq10=true等,如果白空间是令人关切的问题,那么许多图书馆也都设有条码> > 编码功能,以缩小白空间,例如:

A. 导 言 C# 解决办法是看看你参数界定的扼杀事项。

string myString = "Hey it s my string!";
bool ItMatters;

ItMatters = myString.Length >= 10;

<代码>S{10,}


下面不予考虑:

额外性以填补空缺。





相关问题
Uncommon regular expressions [closed]

Recently I discovered two amazing regular expression features: ?: and ?!. I was curious of other neat regex features. So maybe you would like to share some tricky regular expressions.

regex to trap img tag, both versions

I need to remove image tags from text, so both versions of the tag: <img src="" ... ></img> <img src="" ... />

C++, Boost regex, replace value function of matched value?

Specifically, I have an array of strings called val, and want to replace all instances of "%{n}%" in the input with val[n]. More generally, I want the replace value to be a function of the match ...

PowerShell -match operator and multiple groups

I have the following log entry that I am processing in PowerShell I m trying to extract all the activity names and durations using the -match operator but I am only getting one match group back. I m ...

Is it possible to negate a regular expression search?

I m building a lexical analysis engine in c#. For the most part it is done and works quite well. One of the features of my lexer is that it allows any user to input their own regular expressions. This ...

regex for four-digit numbers (or "default")

I need a regex for four-digit numbers separated by comma ("default" can also be a value). Examples: 6755 3452,8767,9865,8766,3454 7678,9876 1234,9867,6876,9865 default Note: "default" ...

热门标签