因此,正则表达式 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.
当然,还可能有其它的格式,只需要在URL格式的字符串中修改正则表达式即可。
It is of course possible to have other formats, simply by changing he regular expression in the URL pattern string.
您针对这个对象运行一个正则表达式,提取用户代理字符串。
You run a regular expression against it to extract the user agent string.
通过使用正则表达式引擎,很容易测试出字符串是否与模式匹配。
Using a regular expression engine, it is easy to test if a string matches the pattern.
但是掩码字符串不如正则表达式那么灵活。
But mask strings are not as flexible as regular expressions.
例如,正则表达式abc将与字符串abc匹配,但不与def匹配。
For example, the regular expression ABC will match the string ABC but not DEF.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
When specifying patterns in the element, realize that regular expressions are used to perform the matching and string replacement.
正则表达式用来基于字符、频率和字符顺序定义字符串中的模式。
Regular expressions are used to define patterns in strings based on characters, frequency, and character order.
而其内置的字符串操纵函数(包括正则表达式),以及程序上的特性和方便性使它成为创建简单“脚本”程序的理想语言。
And its built-in string manipulation functions (including regular expressions), as well as procedural and convenience features make it the ideal language for creating simple "scripting" programs.
实现这种自动化主要依靠正则表达式,它是用来查找、匹配和分解字符串的一组真正的象形文字。
The power behind much of this automation is the regular expression, a veritable set of hieroglyphics to find, match, and decompose strings.
清单8演示了如何使用正则表达式检查JSON字符串。
Listing 8 demonstrates how to check a JSON string with a regular expression.
这是包含被替换值替换了适当正则表达式匹配项的字符串。
This is the string that has the appropriate regular expressions matches replaced with the replacement value.
当然,正则表达式被限定为严格的字符串比较。
Of course, regular expressions are limited to strict string comparisons.
此函数试图匹配并返回正则表达式针对源字符串定义的模式的特定发生项。
This function attempts to match and return a specific occurrence of a pattern that is defined by the regular expression against the source string.
简而言之,正则表达式描述字符串模式。
In a nutshell, a regular expression describes a string pattern.
正则表达式是描述一组字符串的字符模式。
A regular expression is a pattern of characters that describes a set of strings.
此函数试图匹配正则表达式针对源字符串的模式的特定发生项。
This function attempts to match a specific occurrence of the pattern that is defined by the regular expression against the source string.
正则表达式 是定义匹配模式的字符串。
Regular expressions are strings of characters that define a pattern to be matched.
确定字符串是否与模式匹配是对正则表达式的最简单应用,如图1所示,而且易于操作。
Determining if a string matches a pattern is the simplest use of regular expressions and, as you see in Figure 1, it's, easy to do.
在vi 中,可以使用 /命令搜索字符串,这需要以字面字符串或正则表达式的形式指定要匹配的模式。
You can search for strings in vi using the / command, specifying the pattern to match either as a literal string or as a regular expression.
在一个字符串上调用。r会把它变成一个正则表达式;我们是用了原始(三重引号)字符串来避免诸多双重转义的反斜杠。
Calling.r on a string turns it into a regular expression; we use raw (triple-quoted) strings here to avoid having to double-escape backslashes.
一个指定正则表达式来匹配光标左边的内容的字符串。
A string specifying a regular expression to match what's to the left of the cursor.
一个指定正则表达式来匹配光标右边的内容的字符串。
A string specifying a regular expression to match what's to the right of the cursor.
varlist可能有点麻烦,因为它必须采用正则表达式(空字符串是绝对无效的)。
Note that the varlist function can be a little tricky because it must take a regular expression (an empty string will NOT work).
更好的方法是使用一种方法来计算日期,比如Calendar . get (Calendar .YEAR),从而避免创建额外的字符串和正则表达式。
Better yet, use a method of working out the date which avoids creating extra strings and regular expression matching, such as Calendar.get (Calendar.YEAR).
URL模式:与Perl兼容的正则表达式字符串,将与客户端发送的URL进行匹配。
URL pattern: a Perl-compatible regular expression string to be matched with the URL sent by the client.
第二行中的新正则表达式匹配任何包含MSIE或以Lynx开头的字符串。
The new regular expression in the second line matches any string that contains MSIE or starts with Lynx.
与尝试用正则表达式和字符串函数手动完成此工作相比,使用 filter_var()函数将极大地减少编码量。
The filter_var() function greatly reduces the amount of coding compared to if you were to try to do this manually with a regular expression and string functions.
source:正则表达式所匹配的输入字符串。
Source: the input string the regular expression is matched against.
当框架调用initialize时,NameReferenceAnnotator从描述符以字符串形式读取正则表达式并编译它。
When initialize is called by the framework, the NameReferenceAnnotator reads the regular expression as a string from its descriptor and compiles it.
应用推荐