因此,正则表达式 A*B将与字符串AB 、AAB 、AAAB或任何其它以 A 开头并以单个 B 为结尾的字符串相匹配。
Therefore the regular expression A*B will match the strings AB, AAB, AAAB, or any other string starting with an A and ending with a single B.
我们还在正则表达式语法中加入了一个连接词。
We're also putting in a conjunctional into our regex syntax.
每一个规则依次包含一个正则表达式以及该正则表达式得到匹配时要运行的一些代码。
Each rule, in turn, consists of a regular expression and some code to be run when that regular expression is matched.
从第一个正则表达式开始,创建一个来自数据文件的记录数组,然后循环执行其余的正则表达式以改进结果。
Starting with the first regular expression, create an array of records from the data file, then loop through the remaining regular expressions to refine the results.
正则表达式描述字符串的格式:使用最简单的正则表达式格式,您可以输入您希望匹配的文本。
A regular expression describes the format of a string: With the simplest form of regular expression, you input the text that you want to match.
它表示一个正则表达式并提供了使正则表达式与字符串相匹配的逻辑。
It represents a regular expression and provides the logic to match the regular expression against strings.
使用正则表达式、枚举、联合、列表和置换组的说明。
Explanation of using regular expressions, enumerations, unions, lists, and substitution groups.
我从不建议使用正则表达式读取XML,但是有时它是兼容性最好的方式,因为正则表达式函数总是可用的。
I never recommend using regular expressions to read XML, but sometimes it's the most compatible way because the regular expression functions are always available.
基础的正则表达式是非常容易书写的,但难以读懂。
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.
但是掩码字符串不如正则表达式那么灵活。
But mask strings are not as flexible as regular expressions.
还有,看看正则表达式是多么的简单。
您要使用正则表达式来实现该蒙版。
使用清单2中的样式表验证正则表达式。
正则表达式不一定包含通配符,但通配符可以使正则表达式在搜索模式和处理文件时发挥更大的作用。
A regular expression doesn't have to contain wildcards, but wildcards can make regular expressions useful for searching for patterns and manipulating files.
在开始之前,我们需要首先理解什么是正则表达式,以及如何使用正则表达式。
Before you start, you should first understand what regular expressions are and how to use them.
这些重写规则表明了正则表达式的功能。
These rewriting rules demonstrate the power of regular expressions.
然而,正则表达式的确切语法并不重要;正则表达式可以采用很多方法来编写。
However, the exact syntax of the regular expression is not that important; regular expressions can be written in many ways.
正则表达式通过捕获来提取信息。
第4步:评估正则表达式。
正则表达式还可以包括重复修饰符。
简而言之,正则表达式描述字符串模式。
In a nutshell, a regular expression describes a string pattern.
给定一个正则表达式和数据,正则表达式引擎将得到数据是否匹配模式及匹配内容(如果找到匹配)等结果。
Given a regex and a datum, a regex engine yields whether the datum matches a pattern and, if a match was found, what matched.
这个正则表达式在元素中指定。
任何正则表达式都可以使用。
正则表达式参数是路由机制。
正则表达式的一个优点是能够定制所使用的正则表示式。
The nice thing about the regular expression is the ability to customize the regular expression used.
正则表达式是执行此操作的更好方法。
Regular expressions are a much better means of performing this operation.
每个正则表达式都由一个匹配元素表示。
应用推荐