Parsing XML with regular expressions

  • 用正则表达式解析XML
  • 来源:互联网摘选更新时间:2026-07-01 15:46:24

  • 重点词汇
  • parsingn.分[剖]析,分解;
  • XMLabbr.Extensible Markup Language 可扩展标记语言;
  • regularadj.定时的,定期的;经常的;恒常的,常规的,循常例的;〈天〉(卫星)规则的;有规律的,规则的;正常的;寻常的,普通的,一般的;〈数〉正的,正则的;〈军〉正规的,常备的;固定的;定时的;均匀的;频繁的;(晶体)等轴的,立方(晶)系的;〈植〉整齐的;〈美〉(球队等)校队第一队的,(球员等)属校队第一队的,主力的;〈口〉十足的,彻底的;正当的;端正的,齐整的;符合规定的,符合手续的;经常做(或发生)的;匀称的;〈口〉(小儿、病人)大便正常的,一日一次排便的;(女子)月经正常的;靠得住的;间隙均匀的;〈宗〉受宗教约束的,属于修道会的;〈美〉挺不错的;正式合格的
  • withprep. 具有;和;用;有;以;跟;同;带有;使用;和…在一起;借;与…对立;关于;包括;因为;由于;与…方向一致;由…持有;为…工作;虽然;作为…的成员,为…所雇用;具有,有,带有;在…身上,在…身边;由于,因;在…那里,在…看来
  • expressionsn.表情( expression的名词复数 );表示;(数学)表达式;词;
  • 相关例句
1、

To use regular expressions inside your Java code, you usually need to complete the following seven steps

要在Java代码中使用正则表达式,通常需要完成以下七个步骤

互联网摘选

2、

Source: The input string the regular expression is matched against.

source:正则表达式所匹配的输入字符串。

互联网摘选

3、

Aim at Chinese information, a regular expressions based, Web table oriented information extracting method is proposed.

针对中文信息,提出了一个基于正则表达式、面向Web表格的信息抽取方法。

互联网摘选

4、

Enter the following regular expression pattern into the input field of the Rule section

在Rule部分的input框中输入以下正则表达式模式

互联网摘选

5、

This rule verifies that any records that have country as US also have postal codes that match a particular regular expression.

该规则验证了任何country为US的记录,其postal codes也匹配一个特定正则表达式。

互联网摘选

6、

A simple regular expression is used to extract the latitude and longitude from the XML.

使用简单的正则表达式从XML提取纬度和经度。

互联网摘选

7、

In Figure 10, the Reference Name ( User in this example) stores the values that are extracted using regular-expression syntax.

在图10中,Reference Name(在本例中是User)存储使用正则表达式语法提取的值。

互联网摘选

8、

The last of these methods is the search method, which searches for a match of a regular expression and returns its position.

这些方法的最后一个是search方法,它搜索正则表达式的匹配结果并返回其位置。

互联网摘选

9、

Given a string, it loops through the Match to try to find the appropriate regular expression.

给定一个字符串,它对Match进行循环以试图找到相应的正则表达式。

互联网摘选

10、

Build a regular expression that describes the expected value format and put it in the pattern attribute.

构建一个说明所期望值格式的正则表达式,并将其放到pattern属性中。

互联网摘选

11、

Data Extraction Using Regular Expression and Integration of XML Configuration Files

正则表达式与XML配置文件相结合的数据提取

互联网摘选

12、

Note how the regular expression above captures only digits and dots, after "connection from" and a string of non-digits.

请注意,上面的正则表达式如何只捕获“connection from”和一个非数字的字符串后面的数字和点。

互联网摘选

13、

Routes make use of regular expressions for pattern matching, and are expressed using XML.

路由在模式匹配时使用正则表达式,并且使用XML表示。

互联网摘选

14、

However, this proved too complex with long regexes ( it was difficult to decide how the group elements related to the regex).

但是,实践证明对于很长的正则表达式这样太复杂了(很难确定group元素与正则表达式的关系)。

互联网摘选

15、

It defines an XML language for defining regular expressions for the lexical representation of new types.

它定义了一种XML语言,可用于定义新类型的词汇表示的正则表达式。

互联网摘选

16、

Analysing the Use of Regular Expression Object in the ASP

正则表达式对象在ASP中的应用

互联网摘选

17、

The Features folder is empty and the Rules folder contains the rule named Coordinates, but no regular-expression pattern is defined yet.

Features文件夹是空的,Rules文件夹包含名为Coordinates的规则,但是还没有定义正则表达式模式。

互联网摘选

18、

First it creates a regular expression pattern that looks for the end of sentences and one for individual words.

首先,它创建一个正则表达式模式用于查找句子末尾,并为每个单词创建一个ONE变量,用于统计单词的出现频率。

互联网摘选

19、

The value attribute may be literal characters, variables, or variables plus a customized regular expression.

value属性可以是文本字符、变量或变量外加一个定制的正则表达式。

互联网摘选

20、

A Fast Regular Expression Set Matching Algorithm Based on Bloom Filter

一种基于Bloom filter的正则表达式集合快速搜索算法

互联网摘选

  • 今日热词
  • 热门搜索

英语网英语词典(dict.25820.com)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈