regexes
美
英 
例句
Commonly referred to as regexes, regular expressions are a feature of nearly all modern programming languages.
正則表達(dá)式是幾乎所有現(xiàn)代編程語(yǔ)言的共有特性之一,通常被簡(jiǎn)稱為regexes(regex的復(fù)數(shù),RegularExpression的簡(jiǎn)稱)。
To help you catch runaway backtracking early, always test your regexes with long strings that contain partial matches.
為幫助你早日把握回溯失控,總是用包含特殊匹配的長(zhǎng)字符串測(cè)試你的正則表達(dá)式。
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目標(biāo)是成為與Ruby1.8.x(及以后版本)兼容的實(shí)現(xiàn),因此有必要支持同樣的正則表達(dá)式。
Regexes are not always the best tool for the job, especially when you are merely searching for literal strings.
正則表達(dá)式并不總是完成工作的最佳工具,尤其當(dāng)你只是搜索一個(gè)文本字符串時(shí)。
However, this proved too complex with long regexes (it was difficult to decide how the group elements related to the regex).
但是,實(shí)踐證明對(duì)于很長(zhǎng)的正則表達(dá)式這樣太復(fù)雜了(很難確定group元素與正則表達(dá)式的關(guān)系)。
Using a concise shorthand, regexes describe the form of data and decompose it.
使用簡(jiǎn)明的簡(jiǎn)寫方式,regex說(shuō)明了數(shù)據(jù)的格式并分解數(shù)據(jù)。
As introduced in Part 1, regexes are one of the most powerful tools for manipulating data.
如第1部分中所述,regex是處理數(shù)據(jù)的最強(qiáng)大工具之一。
Regexes in Scala should contain no surprises if you've used them in other programming languages.
如果已經(jīng)在其它編程語(yǔ)言中使用正則表達(dá)式,那么Scala的應(yīng)該不會(huì)讓你感覺到驚訝。
Since the fields have a fixed length, the regexes are simple, taking the form . {5}, which means "any character, repeated five times. "
因?yàn)?/c>字段長(zhǎng)度是固定的,正則表達(dá)式非常簡(jiǎn)單,采用.{5}這樣的形式,其含義是“任意字符,重復(fù)5次”。
The important thing is to avoid repeatedly recompiling regexes within loops.
重要的是避免在循環(huán)體中重復(fù)編譯正則表達(dá)式。
You can concatenate and combine the primitives in Table 1 (and other operators) and use them in combination to build (very) complex regexes.
您可以連接和結(jié)合表1中的基本操作符(以及其他操作符)并進(jìn)行組合來(lái)構(gòu)建(非常)復(fù)雜的regex。
Now I delve more deeply into regexes and look at a handful of advanced operators and recipes.
現(xiàn)在我將更深入地研究regex并查看一些高級(jí)操作符和處理方法。
When used with care, regexes are very fast.
小心使用它,正則表達(dá)式是非常快的。
Regexes can remember what's been matched with capture.
Regex可以記住與capture匹配的內(nèi)容。
Just because two regexes match the same text doesn't mean they do so at the same speed.
兩個(gè)正則表達(dá)式匹配相同的文本并不意味著他們具有同等的速度。
Think about the kinds of strings that your regexes will nearly but not quite match, and include those in your tests.
針對(duì)你的正則表達(dá)式構(gòu)思一些近似但不能完全匹配的字符串,將他們應(yīng)用在你的測(cè)試中。
Make your regexes portable with character classes
用字符類實(shí)現(xiàn)可移植的regex