You don't want to extend regular expressions to style HTML, nor CSS to match text patterns.
比方说你不会试图去扩展正则表达式来设计HTML页面,也不会用CSS来进行文本匹配。
Shows how to match text in the active document as you type a search string character by character.
说明如何在您逐字元输入搜寻的字串时,比对使用中文件内的文字。
Initializing the data to default values and specifying locations for the match text to be rendered is shown below.
下面显示了如何把数据初始化为默认值并指定要渲染的匹配文本的位置。
With matching complete and the render states updated, all that's left is to actually draw the match text on the screen.
匹配完成并且更新了渲染状态后,剩下要做的就是在屏幕中实际绘制匹配文本。
After you extract the text, you then replace all instances of text that match the mask with the mask name (if a mask is required), as shown in Listing 4.
在您获取文本之后,您就使用蒙版名来替换匹配蒙版文本的所有实例(如果需要蒙版的话),如代码清单4所示。
Each time a connection comes in, every text and image type keyword match check specified in the config file is performed.
每次传入连接,都将执行配置文件中指定的每个文本和图像类型关键字匹配检查。
To find these concepts in text, you can specify rules that define a pattern to match these concepts.
为了在文本中寻找这些概念,可以通过指定规则定义匹配这些概念的模式。
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.
正则表达式描述字符串的格式:使用最简单的正则表达式格式,您可以输入您希望匹配的文本。
For example, you can limit text search to terms that match only if they occur in the same sentence (proximity search).
例如,可以将文本搜索限制到只匹配同一句子中出现的单词(接近搜索)。
However, due to the complexity of the SQL required to match on so many fields, and potentially, the size of the text of those fields, the performance of this implementation is usually very poor.
然而,因为复杂的SQL要去匹配太多的字段,并且很多情况下由于这些字段的文本长度问题,造成实现的性能经常是非常差的。
Listing 20 shows the code to process events and search records for a match against a user-entered text string.
清单20展示了处理事件以及搜索与用户输入文本字符串相匹配的记录的代码。
Regular expressions are ways to match patterns against text — similar to how a compiler works to generate class files.
正则表达式是根据文本匹配模式的方法—类似于编译器生成类文件的工作原理。
The article provides an auto-completion example that fills in a text box to match results as a user types.
本文提供一个自动完成的示例,填满文本框来根据用户类型匹配结果。
If widgets are used, minimize and match their sizing to surrounding screen elements such as text, to avoid excessive consumption of space, awkward alignment, and line spacing problems.
如果使用了小部件,请将其最小化到与周围的屏幕元素(例如文本)大小相匹配,以避免过度占用空间、糟糕的对齐问题和行间距问题。
Exact searches: Only entries that match the searched text are retrieved from the data repository.
精确搜索:从数据资料库中检索和搜索文本匹配的记录。
Rules to match other nodes, such as text nodes, attributes, and comments, are comparatively rare.
匹配其它节点(如文本节点、属性和注释)的规则相对较少。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
WSDL 1.1 included a schema description in the original specification, but that schema didn't match the text descriptions in several respects.
WSDL 1.1在最初的规范中包含了一个模式描述,但是这个模式在几个方面上与内容描述并不匹配。
Script 8.pl will properly match all the words in the input text.
脚本8 .pl可以正确匹配输入文本中的所有单词。
The.findall method returns a list of all matching nodes;.find returns just the first match;.findtext returns the text content of a node.
findall方法返回所有匹配节点的列表;.find则仅返回首次匹配的节点;.findtext返回节点的文本内容。
With the Regular expression Lookup operator you can find the text sections that match the expressions contained in the selected rule files.
通过使用RegularExpressionlookup操作器,可以找到与所选规则文件中包含的表达式匹配的文本部分。
The function finds the first node to match the given XPath and extracts its text value.
该函数查找匹配给定xpath的第一个节点并抽取其文本值。
With your preferred text editor, open the settings.py file and change it to match the Settings provided in Listing 4.
利用自己喜欢的文本编辑器,打开settings. py文件并改变它来匹配清单4内所示的设置。
In Figure 9 you can see that there are only two instances of text that have an exact match of formatting characteristics in the first selection, organized under the Introduction heading.
在图9之中,您就可以看到只有两个实例的文本,该文本在首个选项之中精确匹配格式特征,在引言标题下组织。
The implicit side effect is that after this line the matcher object contains the first match found in the input text.
隐含的副作用是,执行该行代码之后, matcher对象包含在输入文本中找到的第一个匹配项。
PHP provides functions to find matches in text, to replace each match with other text (a la search and replace), and to find matches among the elements of a list. The functions are.
PHP提供了用于在文本中查找匹配、将每个匹配替换为其他文本(la搜索和替换)以及在列表的元素之中查找匹配的函数。
A "match" for a text search is an artifact that either
工件中“匹配”一个文本搜索的是
Notice that the second <alt-trans> element has a match quality of 96% due to the differences in markup format, but the text is good enough to be accepted.
注意,因为标记格式的原因,第二个
A common problem is having a rule match too much text; worse, since lex prefers the longest match it can find, this can result in a totally inappropriate rule being matched.
常见的问题是,一个规则匹配太多的文本;更糟糕的是,由于lex倾向于匹配它能找到的最长的文本,这可能导致匹配的是一个完全不适当的规则。
If you do a full text search on Revisions and you include a common keyword like, say, SQL, you're going to match tens of thousands of records.
如果你在修正版(Revisions)上进行全文检索并且包含一些常见的关键字,像SQL滞留,则需要匹配数以万计的记录。
应用推荐