重要的是避免在循环体中重复编译正则表达式。
The important thing is to avoid repeatedly recompiling regexes within loops.
编译正则表达式,并将其保存到单个程序集的磁盘中。
Compiles regular expressions and saves them to disk in a single assembly.
如果不是这样,则引擎将编译正则表达式并将其添加到缓存中。
If not, the engine will compile the regular expression and add it to the cache.
他的文章谈及了微软实现中的一些核心操作原理,如编译正则表达式时使用的机器码。
His article covers the core operating principals of Microsoft's implementation such as the machine code used by compiled regular expressions.
虽然我将使用的这个算法最初被设计成编译正则表达式,但我确信,这个算法能够方便地应用到XPath。
The algorithm I will use was originally designed to compile regular expressions, but I'm confident it can be easily adapted to XPaths.
此函数将给定正则表达式编译到具有给定模式的模式中并尝试匹配针对它的给定输入。
This function compiles the given regular expression into a pattern with the given mode and attempts to match the given input against it.
它现在是基于ICU架构而不是Oniguruma的正则表达式编译和模式匹配架构。
It is now using the ICU framework instead of Oniguruma for regular expression compilation and pattern matching.
它接受一个正则表达式并将它编译成Matcher。
It accepts a regular expression and compiles it into a Matcher.
将正则表达式本身编译到Pattern对象中。
The regular expression itself is compiled into a Pattern object.
当框架调用initialize时,NameReferenceAnnotator从描述符以字符串形式读取正则表达式并编译它。
When initialize is called by the framework, the NameReferenceAnnotator reads the regular expression as a string from its descriptor and compiles it.
在清单1中,一旦将正则表达式编译成Pattern,它就创建了带matcher方法的matcher。
In Listing 1, once a regular expression is compiled into a Pattern, it creates a matcher with the matcher method.
该包提供了一个引擎,可以通过解释模式对字符序列执行操作,即模式成为正则表达式的编译表达式。
This package offers an engine that performs operations on character sequences by interpreting patterns, a pattern being a compiled expression of a regular expression.
正则表达式是根据文本匹配模式的方法—类似于编译器生成类文件的工作原理。
Regular expressions are ways to match patterns against text — similar to how a compiler works to generate class files.
您甚至可以重新编译一个正则表达式来提高速度。
You can even precompile a regular expression for speed increases.
如果在任何时候不再需要编译后的正则表达式,则使用regfree删除它。
If at any time you no longer need the compiled regular expression, dispose of it with regfree .
Pattern是一个正则表达式编译器。
要在SquirrelShell中使用正则表达式,需要先定义正则表达式,对其进行编译,进行比较,然后再迭代结果(如果有的话)。
To use a regular expression in Squirrel Shell, you define the regular expression, compile it, make a comparison, then iterate over the results, if any.
它使用正则表达式模块(re),由用户在第8行输入的正则表达式创建已编译的正则表达式。
This USES the regular expression module (re) to create a compiled regular expression from the regular expression the user enters in line 8.
一旦你有了已经编译了的正则表达式的对象,你要用它做什么呢?
Once you have an object representing a compiled regular expression, what do you do with it?
最后提一下性能相关:这些正则表达式将会在url配置文件加载的同时被编译。所以他们的查找会很快的(除了上面提到的情况)。
Finally, a performance note: these regular expressions are compiled the first time the URLconf module is loaded. They're super fast (as long as the lookups aren't too complex as noted above).
正则表达式被编译后就不会发生此错误。
Once the regular expression is compiled, this error cannot occur.
用户可以声明应编译哪个正则表达式。
A user can declare which regular expressions should be compiled.
对于常用的正则表达式,一次性编译损失无关紧要,这是因为执行时可能有显著改进。
For regular expressions that are used frequently, the one-time compilation penalty is insignificant because a significant improvement in execution time is possible.
当正则表达式出现编译错误时发生。
Occurs when a compilation error occurs with a regular expression.
不要过分忧虑,正则表达式编译很快,这样的缓存池所增加的负担可能超过他们所避免的。
Don't bother; regex compilation is fast, and such schemes likely add more overhead than they evade.
在此方案中,编译器使用反射发出编译源代码中的正则表达式。
In this scenario, a compiler USES reflection emit to compile regular expressions in source code.
编译器在已编译的扫描仪类中检索正则表达式,将其实例化并在当前应用程序域中执行代码。
The compiler retrieves the compiled scanner class for the regular expression, instantiates it, and executes the code in the current application domain.
这个编译实验把一个正则表达式转化为不确定的有穷自动机NFA算法,有兴趣的朋友可以看看哦。
The experiment to compile a regular expression into an uncertain finite automata NFA algorithm, interested friends can see Oh.
由于用户已请求编译表达式,编译器使用反射发出将正则表达式编译为自定义扫描仪类。
The compiler compiles the regular expression into a custom scanner class using reflection emit because the user has requested that the expression be compiled.
编译器处理用户源代码中正则表达式的第一次使用。
The compiler processes the first use of a regular expression in a user's source code.
应用推荐