开始和结束标记带有下划线用于阻止意外的字符串匹配。
Start and end each token with an underscore to prevent accidental string matches.
最近我写过一篇关于在Python中实现模糊子串匹配的算法的文章。
I recently wrote about an algorithm for fuzzy matching of substrings implemented in Python.
如果字符串匹配,则执行适当的计算,并返回格式化的字符串,以供显示。
The string is matched, the appropriate calculation is performed, and a formatted string is returned to be displayed.
例如,killall命令最基本的功能是终止所有与特定字符串匹配的命令。
For example, the killall command, at its most basic level, kills all commands that match a particular string.
“*”是通配符,可用来支持子字符串匹配,比如 com.infoq.*.*。
The * character is used to indicate wildcards, and can be used to support substring matching as in com.infoq.*.*.
如果客户机的加密过的返回字符串与本地加密的字符串匹配,则运行关闭命令。
If the client's encrypted return string and the locally encrypted string match, the shutdown command is run.
构建regexp时,这样可帮助在数据集上下文中查看模式与哪些字符串匹配。
When building a regexp, it helps to be able to see what strings the pattern matches in the context of a data set.
Business GlossaryBrowser返回与搜索字符串匹配的条目列表。
Business Glossary Browser returns then the list of entries that match the search string.
我用到了模糊字符串匹配、FreeDB检索、ID3版本1和2,以及许多文本模式用户交互。
I used fuzzy string matching, FreeDB searches, ID3 versions 1 and 2, and lots of text-mode user interactions.
使用文本索引使文档搜索的效率大大提高,因为不需要像进行子字符串匹配时那样在查询时检查文本数据。
Using a text index makes document search much more efficient, as the text data does not need to be examined at query time like it is done with sub-string matching.
Feed生成器将查询字符串传递给数据库或存储库并返回包含与查询字符串匹配的条目的 Feed。
The feed producer passes the query string to the database or repository and returns a feed with entries matching the query string.
按照这种方式,如果以后决定修改php后端,那么只要“处理作业类型”字符串匹配,系统就仍然可以工作。
In this way, if, at a later date, you decide to change the PHP back end for something else, it will still work if the "processing job type" strings match.
该应用程序使用了一些字符串方法、一些正则表达式和一些主要由正则表达式和字符串匹配所驱动的程序逻辑。
This application USES some string methods, some regular expressions, and some program logic driven mostly by regular expressions and string matches.
在第1部分的图13可以看到,cn属性类型有一个叫做SUBSTR的字段,它定义了子字符串匹配的匹配规则。
You saw in Part 1, Figure 13 that the cn attribute type has a field called substr, which defines the matching rules for substring match.
使用由CA签名的证书时,MQ管理员只控制允许连接的DistinguishedNames (DN)的字符串匹配模板。
With CA-signed certificates, the MQ administrator controls only the string matching template for Distinguished Names (DN) that are allowed to connect.
该命令的关键部分是能够识别正在运行的进程,提取与给定字符串匹配的进程,并使用kill 命令将 KILL 信号发送到每个匹配进程。
The key component to the command is the ability to identify running processes, extract the ones matching a given string, and use the kill command to send the KILL signal to each matching process.
在使用WebSphereTranslationServer提供的翻译之前,验证翻译是否确实与源字符串匹配或许是个很好的业务实践。
Before using a translation provided by WebSphere translation Server, it is probably a good business practice to verify that the translation actually parallels the source string.
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.
前面的星号表示匹配任何字符串。
正则表达式(regular expression,regexp)是用于描述字符串集的匹配模式的概念,在很多程序和语言中都是通用的。
The concept of regular expressions (regexps) -a notation for describing a pattern that matches a set of strings-is common across many programs and languages.
结尾处的加号表示“查找最后字符串的一个或多个匹配”(星号表示“零个或多个”,问号表示“零个或一个”)。
The plus sign at the end means "match one or more of the last thing" (the asterisk is for "zero or more", and the question-mark is for "zero or one").
任何单个字符或一串字符都可以匹配字符本身,例如上面的“admin”的例子。
Any single character or series of characters can be used to match itself or themselves, as in the "admin" example above.
通过此函数,我们现在可在字符串中找到多个匹配项,并且可从每个匹配项中提取特定的信息片段。
With this function we can now find multiple matches within a string and extract specific pieces of the information from within each match.
第二个case表达式在Person的firstName部分使用了一个通配符,但在lastName 部分使用常量字符串Neward 来匹配,在age 部分使用通配符来匹配。
The second case expression uses a wildcard for the firstName part of Person but matches against the constant string Neward in the lastName part and wildcards against the age part.
然而,Match对象并非用于测试匹配而是为在输入字符串中找到的第一个匹配项创建的。
Instead of testing for a match, however, a match object is created for the first match found in the input string.
如果使用圆括号将模式元素括起来,您可以在替换字符串中使用匹配的内容。
If you wrap pattern elements in parentheses, you can use the matched contents in the replacement string.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
正则表达式 是定义匹配模式的字符串。
Regular expressions are strings of characters that define a pattern to be matched.
清单20展示了处理事件以及搜索与用户输入文本字符串相匹配的记录的代码。
Listing 20 shows the code to process events and search records for a match against a user-entered text string.
您只需要确保在php中更改连接字符串,以匹配数据库的名称。
You just need to make sure that you change the connection strings in the PHP to match the name of the database.
应用推荐