因此,正则表达式 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.
通过使用正则表达式引擎,很容易测试出字符串是否与模式匹配。
Using a regular expression engine, it is easy to test if a string matches the pattern.
我仍然将存在隐患的调用替换成亲自编写的字符串操作,因为它们仅和少数特定的正则表达式一起使用。
I may yet replace the calls in question with hand-coded string operations, since they're only used with a few very specific regular expressions.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
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.
这是包含被替换值替换了适当正则表达式匹配项的字符串。
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.
此函数试图匹配正则表达式针对源字符串的模式的特定发生项。
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.
给定一个字符串,它对Match进行循环以试图找到相应的正则表达式。
Given a string, it loops through the Match to try to find the appropriate regular expression.
varlist可能有点麻烦,因为它必须采用正则表达式(空字符串是绝对无效的)。
Note that the varlist function can be a little tricky because it must take a regular expression (an empty string will NOT work).
正则表达式提供了跨文本的字符串的更丰富的模式匹配,但在遍历诸如xml树这样的数据结构时,它和XPath一样易于使用。
Regular expressions provide much richer pattern matching across strings of text, but are as easy to use as XPath when traversing a data structure such as an XML tree.
更好的方法是使用一种方法来计算日期,比如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.
当框架调用initialize时,NameReferenceAnnotator从描述符以字符串形式读取正则表达式并编译它。
When initialize is called by the framework, the NameReferenceAnnotator reads the regular expression as a string from its descriptor and compiles it.
当前年度通过构建一个Date对象(格式为一个字符串)计算,然后使用一个正则表达式来解析年份。
The current year was then worked out by constructing a Date object, formatted as a string, and then a regular expression was used to parse out the year.
如何使用正则表达式(字符串范式)、枚举、联合、列表以及置换组?
How to use regular expressions (string patterns), enumerations, unions, lists, and substitution groups?
为了确定这些段落,将使用matches函数(XSLT 2.0中的新增内容),以确定某个字符串是否匹配正则表达式。
To determine this, they use the matches function (new in XSLT 2.0), which determines whether a string matches a regular expression.
从技术角度而言,正则表达式是表示某种模式的字符串(也就是说,由字母、数字和符号组成的字符序列),用于定义零或更长的字符串。
Technically speaking, a regular expression is a string (that is, a sequence of characters composed of letters, Numbers, and symbols) that represents a pattern defining zero or more strings.
应用推荐