从第一个正则表达式开始,创建一个来自数据文件的记录数组,然后循环执行其余的正则表达式以改进结果。
Starting with the first regular expression, create an array of records from the data file, then loop through the remaining regular expressions to refine the results.
首先,我们要创建一个从文本文档中提取面积和位置概念的正则表达式规则文件。
First, we will create a regular expression rule file to extract the concepts of area and location from text documents.
请注意,文件路径中展开的大括号(不是完整的远程路径表达式)已用双引号括上。
Note that the brace expansion of the file path, not the full remote path expression, has been enclosed in double quotes.
正则表达式注释器是通过一个XML文件配置的。
The regular expression annotator is configured by means of an XML file.
如果已经将存储设备挂载在特定目录路径下,那么根据根目录路径选择文件存储区域的筛选器表达式比较有用。
A filter expression to select file storage areas based on its root directory path can be useful if you have organized your storage devices to be mounted under specific directory paths.
我们可以从完整的文件创建语法树,也可以从松散的声明或者表达式生成它。
A syntax tree can be created from an entire file or just a loose statement or expression.
正则表达式不一定包含通配符,但通配符可以使正则表达式在搜索模式和处理文件时发挥更大的作用。
A regular expression doesn't have to contain wildcards, but wildcards can make regular expressions useful for searching for patterns and manipulating files.
正如前面提到的,插件扩展了即时消息传递客户机,它会根据初始化文件中的正则表达式,分析消息并寻找特定的关键词。
Remember that the instant messaging client was extended to analyze and scan the messages for particular key phrases, as specified through a regular expression in the initialization file.
文本消息必须符合的模式是通过初始化文件中的元素中定义的正则表达式定义的。
The pattern that the text message must correspond to is defined through a regular expression defined through the element in the initialization file.
由于正则表达式是从文本文件中装载的一个字符串,所以当添加对新类型的邮政编码的支持时,不需要更改代码。
The regular expression is a string loaded from a text file, so you don't need to change the code when you want to add support for a new type of postal code.
您还可以使用类似于正则表达式的组来匹配文件。
You can also use regular expression-like groups to match files.
这个操作器使用包含正则表达式规则的规则文件从文本列中提取出概念。
The operator USES rule files containing regular expression rules to extract concepts from text columns.
它现在可以使JSF表达式生效,核查数据类型,将JSF标签与JSF配置文件连接起来,等等。
It can now validate JSF expressions, check data types, link JSF tags with JSF configuration files, and much more.
用正则表达式解析这些文件同样没有什么大不了的。
Again, it is trivial to parse those files with regular expressions.
用户不能自己输入文件或使用正则表达式。
They wouldn't be allowed to type in a list of files or use some kind of regular expression.
它使用正则表达式(现在已内置于JDK 1.4中)来解析输入文件并创建一个xml副本。
It USES regular expressions (now built into JDK 1.4) to parse the input file and create an XML counterpart.
创建规则文件和匹配位置和面积的正则表达式。
Creating a rule file with regular expressions for location and area.
在最简单的形式中,正则表达式(regular expression)是用来在文件中定位文本的一些搜索标准。
In their simplest form, regular expressions are the search criteria used for locating text in a file.
为了使示例运行,您将需要获取GNU提供的正则表达式jar文件(请参阅参考资料),并将它放置到解压缩产生的lib目录下。
You will need to obtain he regular expression jar file provided by GNU (see Resources) and place it in the extracted lib directory, in order to get the examples to work.
这两个元素可以很容易地定义为插件xml文件中的Eclipse核心表达式。
These two elements are easy to define as Eclipse core expressions in the plug-in xml file.
通过使用RegularExpressionlookup操作器,可以找到与所选规则文件中包含的表达式匹配的文本部分。
With the Regular expression Lookup operator you can find the text sections that match the expressions contained in the selected rule files.
(在默认情况下,寻找包含单词Test或 test 的名称,但是可以通过命令行或配置文件提供不同的正则表达式)。
Which, by default, looks for names that include the word Test or test, but a different regular expression can be provided on the command line or a configuration file.
要完成这个任务,要用包含XPath表达式的TXT文件来标记要被替代的XML配置的位置。
To do this task, TXT files containing XPath expressions are used to mark the positions of XML configurations to be replaced.
因此,由于Matcher接受CharSequence,所以将正则表达式应用到全体文件是可能的。
Therefore, since Matcher accepts CharSequence, it is possible to apply regular expressions to whole files.
可以在没有脚本的JSP页面中使用set.tag文件(参见清单4)来设置 #{...}表达式的值。
The set.tag file (see Listing 4) can be used in a scriptless JSP page to set the value of a #{...} expression.
如果您还不熟悉XI,它使用正则表达式(regex)预处理文本文件并转化成xml。
If you are not familiar with XI, it USES regular expressions (regex) to pre-process text files and convert them to XML.
清单1中简单的HelloWorld例子显示了如何通过ZUL文件中的EL表达式来访问托管bean。
The simple HelloWorld example in Listing 1 shows how a managed bean is accessed through EL expression within a ZUL file.
清单19使用Zorba读取该文件,并使用XQueryUpdate表达式在末尾添加一个新条目。
Listing 19 USES Zorba to read this file and add a new entry to the end using an XQuery Update expression.
利用清单1中的示例products . xml文件以及PHP5SimpleXMLAPI,可以试用各种XPath表达式。
With the sample products.xml file from Listing 1 and the PHP5 SimpleXML API, you can experiment with various XPath expressions.
打开示例文件ContactsDocument.xsd或您自己的文件,输入以下表达式。
Open the sample supplied ContactsDocument.xsd file or one of your own and enter the following expressions.
应用推荐