通过此函数,我们现在可在字符串中找到多个匹配项,并且可从每个匹配项中提取特定的信息片段。
With this function we can now find multiple matches within a string and extract specific pieces of the information from within each match.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
此函数试图匹配并返回正则表达式针对源字符串定义的模式的特定发生项。
This function attempts to match and return a specific occurrence of a pattern that is defined by the regular expression against the source string.
如果这两个字符串中有任意一个与参数相匹配,那么函数就会返回相应的鱼饵数组。
If either one of those strings matches the parameter, then the appropriate array of lures is returned.
此函数试图匹配正则表达式针对源字符串的模式的特定发生项。
This function attempts to match a specific occurrence of the pattern that is defined by the regular expression against the source string.
此函数将在匹配给定regex的每个点上划分字符串。
This function divides the string at every point that matches the provided regex.
NetSearchExtender并不使用字符串匹配连续地搜索文本数据(就像XQuerycontains函数所做的那样),而是使用文本索引。
Rather than sequentially searching through the text data using string matching, as done with the XQuery contains function, Net search Extender USES a text index.
WordCheck函数随后将结果字符串转换为一个Vim命令并执行它(execs: words_matcher),从而启用匹配功能。
The WordCheck function then converts the resulting string as a Vim command and executes it (exec s: words_matcher) to turn on the matching facility.
replace函数采用了三个参数:第一个参数是要修改的文本,第二个参数是与将要替换的部分匹配的正则表达式,第三个参数是替换字符串。
The replace function USES three arguments: the first is the text to modify, the second is the regular expression that matches the part to be replaced, and the third is the replacement string.
如果要像1.0中那样作为字符串匹配,使用xs:string类型转换函数。
To have them matched as strings, as was the case in 1.0, use the xs: string casting function.
执行布尔匹配的XPath中字符串函数的全体是:starts - with 、ends - with和contains 。
the entirety of the string functions in XPath that performs Boolean matching is: starts-with , ends-with , and contains .
为了确定这些段落,将使用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.
首先,从最主要的角度来看,函数的目的是“查找与第一个模式中的值匹配的字符串,然后通过将第三个变量作为要操作的字符串,以第二个模式替换匹配结果”。
First, in broadest terms, the function's purpose is to "match what is in the first pattern, then replace it with the second pattern, using the third argument as the string to operate on."
如果这些字符串相匹配,通过logger函数把这个事件记录在另一个mysql表中作为日志,并且生成一个新的会话id。
If these strings match, this event is logged to another MySQL table via the logger function and a new session ID is generated.
清单4中所示的结构由mimeokay函数使用,用来实现以下用途:将全局字符串指针fstr 设置为与文件扩展名fext 相匹配的合适的MIME类型。
The structure in Listing 4 is used by the mimeokay function for one purpose: to set the global string pointer fstr to the appropriate MIME type string matching the file's extension: fext.
如前所述,contains函数实现子字符串匹配,因此对于以上查询返回true。
As previously mentioned, the contains function implements sub-string matching and therefore returns the value true for the above query.
getenv()函数会在环境列表中搜索与名称字符串相匹配的字符串。
The getenv() function searches the environment list for a string that matches the string pointed to by name.
这个函数接收一个CSS选择器的字符串,然后用这个字符串去匹配一组元素。
This function accepts a string containing a CSS selector which is then used to match a set of elements.
这个函数接管一个CSS选择器的字符串,然后用这个字符串去匹配一组元素。
This function accepts a string containing a CSS or which is then used to match a set of elements.
这个函数接收一个用来匹配一组元素的含有CSS选择器的字符串。
This function accepts a string containing a CSS selector which is then used to match a set of elements.
函数的作用是:返回两个字符串中相匹配的字符数量。
The similar_text function returns the number of matching characters of two strings.
这个函数接收一个选择器的字符串,然后用这个字符串去匹配一组元素。
This function accepts a string containing a selector which is then used to match a set of elements.
这个函数接收一个包含CSS选择器的字符串,然后用这个字符串去匹配一组元素。
This function accepts a string containing a CSS selector which is then used to match a set of elements.
这个函数接收一个包含CSS选择器的字符串,然后用这个字符串去匹配一组元素。
This function accepts a string containing a CSS selector which is then used to match a set of elements.
应用推荐