所有这些格式都可以用正则表达式来描述。
You can describe all of these formats with regular expressions.
您可以按下列方式将该模式写为一个正则表达式。
You can write this pattern as a regular expression in the following way.
基础的正则表达式是非常容易书写的,但难以读懂。
Basic regular expressions are easy to write, but somewhat hard to read.
号后面的正则表达式可以匹配这个正则表达式的一次或多次出现。
A regular expression followed by + matches one or more occurrences of the regular expression.
号后面的正则表达式可以匹配这个正则表达式的零次或一次出现。
A regular expression followed by? Matches zero or one occurrence of the regular expression.
提示:所有约束和显示模式都由正则表达式来设置。
TIP: All constraints and display patterns are set by regular expressions.
但是掩码字符串不如正则表达式那么灵活。
But mask strings are not as flexible as regular expressions.
首先,我使用“选项”字段来存储函数的正则表达式选项。
First I use the options field to store the regular expression options for the functions.
还有,看看正则表达式是多么的简单。
首先,阀值定义的关键值是一个正则表达式。
First, the key value for a threshold definition is a regular expression.
您要使用正则表达式来实现该蒙版。
该模式对象代表以文本格式定义的正则表达式。
This pattern object represents the regular expression that is defined in text format.
这个功能非常简单,甚至不包含正则表达式匹配。
Its capability is very simple and does not even include regular expression matching.
清单8演示了如何使用正则表达式检查JSON字符串。
Listing 8 demonstrates how to check a JSON string with a regular expression.
但是您现在已了解了正则表达式的基本知识。
正则表达式通过捕获来提取信息。
您还将通过使用这里展示的技巧来“翻译”正则表达式。
Using the technique I'm showing you, you'll also "translate" the regular expression.
第4步:评估正则表达式。
表1显示了一些基本正则表达式序列。
正则表达式还可以包括重复修饰符。
简而言之,正则表达式描述字符串模式。
In a nutshell, a regular expression describes a string pattern.
这个正则表达式在元素中指定。
任何正则表达式都可以使用。
正则表达式参数是路由机制。
正则表达式是定义将要匹配的文本部分的方式。
A regular expression is a way of defining a portion of text to be matched.
正则表达式是执行此操作的更好方法。
Regular expressions are a much better means of performing this operation.
每个正则表达式都由一个匹配元素表示。
这种情况和以前正则表达式的情况类似。
This is similar to what happened with regular expressions some time ago.
可以使用- e选项来指定正则表达式。
如果该行与正则表达式匹配,则打印该行。
If the line matches the regular expression, then you print out that line.
应用推荐