规则表达式地址总是由斜杠括起。
Regular expression addresses are always surrounded by slashes.
基于搜索字符串寻找结果或者规则表达式。
Search for a finding based on a search string, or a regular expression.
规则表达式搜索满足(尽可能复杂)的模式。
Regular expression searches match on (possibly complex) patterns.
规则表达式很复杂。
Python规则表达式有它自己的一些技巧。
Python regular expressions have a couple tricks of their own.
规则表达式中使用的语法高度依赖于目标执行环境。
The syntax used in rule expressions statements is highly dependent on the target execution environments.
在以后的规则表达式讨论中会进一步说明这个话题。
This is further explained in a later discussion of regular expressions.
同时,您可能想查看下列sed和规则表达式资源。
In the meantime, you might want to check out the following sed and regular expression resources.
可以使用规则表达式来表示可能会在文本中发现的模式。
We can use regular expressions to express patterns that we may find in the text.
感受规则表达式的最好方法可能是看几个示例。
Probably the best way to get your feet wet with regular expressions is to see a few examples.
诀窍是使用规则表达式的简洁语法来编码这种描述。
The trick is encoding this description in the compact syntax of regular expressions.
本文尝试捕捉规则表达式的“完全形态”,让读者可以掌握它。
This article will try to capture the "gestalt" of regular expressions, and let the reader take it from there.
规则表达式是一种很简练方法,用于描述可能在文本中出现的模式。
A regular expression is a concise way of describing a pattern that might occur in a text.
规则表达式搜索虽然能完成相同的搜索,但更简单的系统也能做到。
Regular expression searches can certainly do this, but so can some simpler systems.
它将具有灵活的(可能的基于规则表达式)搜索和替换能力。
It will have flexible (maybe regular-expression based) search and replace capabilities.
实用起见,规则表达式需要以特殊方式处理——为此我们使用grep。
For practical purposes, regular expressions need to be handled on an AD hoc basis — and we have grep for just this purpose.
将这些原子规则转换成特定的规则语法,就可以得到规则表达式。
Transforming these atomic rules into a given rule syntax yields rule expressions.
在规则表达式中,方括号只表示“查找与方括号中任何字符的匹配字符”。
In regular expressions, square brackets just mean "match any character in the brackets."
花一些时间熟悉规则表达式,然后尝试几个自己创建的规则表达式。
Take some time to get familiar with regular expressions, and try a few regular expressions of your own creation. You can use a regexp this way
在这个特别的规则表达式中,出现了' [[:space:]] '字符类。
In this particular regular expression, we encounter the '[[: space:]]' character class.
可以将字符类看作是规则表达式的“原子”,通常会将那些原子组合成“分子”。
You can think of character classes as the "atoms" of regular expressions, and you will usually want to group those atoms into "molecules."
这个规则表达式有许多内容有待理解,但如果多看几遍,您就会明白这就是URL的格式。
This regular expression has a bunch to digest, but if you walk through it a few times, you can see that this is what a URL has to look like.
注意,每组规则表达式只是一组特定业务规则的一种表达方式,它依赖于用于表达它们的语法。
Note that each set of rule expressions is just one way of expressing a given set of business rules, and is dependent on the syntax used to express them.
规则表达式可以采用各种格式,一项关键的设计决策就是决定哪些规则最适合用哪种形式表达。
As discussed, rule expressions may take on a wide range of forms, and a key design decision is the identification of which rules are best expressed in which form.
转移条件,如textln . match,是规则表达式模式,但它们可能也是定制函数。
The transition conditions, such as textln.match , are regular expression patterns, but they could just as well be custom functions.
它们指定一种模式,紧跟在规则表达式地址之后的命令将仅适用于正好与该特定模式匹配的行。
They specify a pattern, and the command that immediately follows a regular expression address will only be applied to a line if it happens to match this particular pattern.
与re(规则表达式)相比,string函数通常更快速,大多数情况下他们更易于理解和维护。
In contrast to re (regular expressions), string functions are generally much faster, and in most cases they are easier to understand and maintain.
利用该模型对皮带机控制系统的设计进行了探讨,并得到符合控制要求的逻辑规则表达式。
Using this model the scheme of the control system of belt conveyors is discussed and the logic rule expression that meets control requirements is gained.
与其它规则模板方法不同,所介绍的规则模板比较接近规则表达式,因而更便于与用户交互。
Distinguished from other rule template methods, our rule template is closer to regular expressions, so the interaction with user is more easily.
逻辑上,每个规则表达式都等价于一个状态机,而每个规则表达式的语法分析器都实现这个状态机。
Every regular expression is logically equivalent to a state machine, and the parser of every regular expression implements a state machine.
应用推荐