regexes

regexes

 英

  • 网络正则表达式

例句

Commonly referred to as regexes, regular expressions are a feature of nearly all modern programming languages.

正则表达几乎所有现代编程语言共有特性之一通常简称regexesregex复数RegularExpression简称)。

To help you catch runaway backtracking early, always test your regexes with long strings that contain partial matches.

帮助早日把握回溯失控总是包含特殊匹配字符串测试表达

Since JRuby aims to be a compatible implementation of Ruby 1. 8. x (or future versions), it's necessary to support the same Regexes.

由于JRuby目标成为Ruby1.8.x(以后版本兼容实现因此必要支持同样表达

Regexes are not always the best tool for the job, especially when you are merely searching for literal strings.

表达并不总是完成工作最佳工具尤其只是搜索一个文本字符串

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

但是实践证明对于表达这样复杂很难确定group元素表达关系)。

Using a concise shorthand, regexes describe the form of data and decompose it.

使用简明简写方式regex说明数据格式分解数据

As introduced in Part 1, regexes are one of the most powerful tools for manipulating data.

第1部分regex处理数据强大工具之一

Regexes in Scala should contain no surprises if you've used them in other programming languages.

如果已经其它编程语言使用表达那么Scala应该不会感觉惊讶

Since the fields have a fixed length, the regexes are simple, taking the form . {5}, which means "any character, repeated five times. "

因为字段长度固定表达非常简单采用.{5}这样形式含义任意字符重复5”。

The important thing is to avoid repeatedly recompiling regexes within loops.

重要避免循环重复编译表达

You can concatenate and combine the primitives in Table 1 (and other operators) and use them in combination to build (very) complex regexes.

可以连接结合1基本操作以及其他操作符进行组合构建非常复杂regex

Now I delve more deeply into regexes and look at a handful of advanced operators and recipes.

现在深入地研究regex查看一些高级操作符处理方法

When used with care, regexes are very fast.

小心使用表达非常

Regexes can remember what's been matched with capture.

Regex可以记住capture匹配内容

Just because two regexes match the same text doesn't mean they do so at the same speed.

两个表达匹配相同文本并不意味他们具有同等速度

Think about the kinds of strings that your regexes will nearly but not quite match, and include those in your tests.

针对表达构思一些近似不能完全匹配字符串他们应用测试

Make your regexes portable with character classes

字符实现移植regex