如何将智能引号正常报价时,正则表达式匹配?
PHP: How to convert smart quotes to normal quotes when regex matching?
这是包含被替换值替换了适当正则表达式匹配项的字符串。
This is the string that has the appropriate regular expressions matches replaced with the replacement value.
这个正则表达式匹配了开双引号,但同时找了不同类型的引号来关闭。
This regular expression matches the opening double quote but finds a different type of quote to close it.
清单5中第二行调用对rope进行修饰,优化正则表达式匹配。
The call on the second line in Listing 5 decorates the rope to optimize regular-expression matching.
当nose 检查测试类的内部时,它运行与同一正则表达式匹配的方法。
When nose looks inside of a test class, it runs methods matching that same regular expression.
如果数据与当前的正则表达式匹配,则应用程序显示一条消息,表明邮政编码有效。
If the data matches the current regular expression, the application displays a message to indicate that the postal code is valid.
第二行中的新正则表达式匹配任何包含MSIE或以Lynx开头的字符串。
The new regular expression in the second line matches any string that contains MSIE or starts with Lynx.
当分支必不可少时,将常用分支放在最前面,如果这样做不影响正则表达式匹配的话。
When alternation is necessary, put frequently occurring alternatives first if this doesn't affect what the regex matches.
回溯既是正则表达式匹配功能基本的组成部分,又是正则表达式影响效率的常见原因。
Backtracking is both a fundamental component of regex matching and a frequent source of regex inefficiency.
然后,当调用process时,它在从CAS收到的文档文本中寻找与正则表达式匹配的地方。
Then, when process is called, it finds matches of the regular expression in the document text that it gets from the CAS.
正则表达式匹配最常见的场景是从字符序列的某个点上开始,向前移动,直到找到所有匹配,并到达序列末尾为止。
The most common scenario for matching regular expressions is to start at some point in a character sequence and move forward until all matches have been found and the end of the sequence is reached.
幸运的是,您可以使用sed命令(StreamEDitor),它提供了功能强大的正则表达式匹配和替换。
Luckily, you have the sed command (Stream EDitor), which provides powerful regular expression matching and replacement.
当您使用正则表达式匹配,您输入的值为目标的URL,以及每个程序步骤将阅读作为一个经常性的表达。
When you use Regular Expression Match, the value you enter as the goal URL as well as each of the funnel steps will be read as a Regular Expression.
此正则表达式匹配正常HTML字符串时工作良好,但是如果目标字符串缺少一个或多个标签时,它就会变得十分糟糕。
This regex works fine when matching a suitable HTML string, but it turns ugly when the string is missing one or more required tags.
然后,for 循环遍历每个行,使用内置的matchlist()函数根据 ASSIGN_LINE 中的正则表达式匹配它
The for loop then iterates through each line, matching it against the regular expression in ASSIGN_LINE using the built-in matchlist() function
如果你使用正则表达式匹配一个很大字符串的一小部分,情况更为严重,正则表达式匹配失败的位置比匹配成功的位置要多得多。
This is compounded by the fact that if you're using a regex to match small parts of a large string, the regex will fail at many more positions than it will succeed.
当nose检查python测试模块的内部时,它采用在选择测试模块时使用的正则表达式,收集与这个正则表达式匹配的函数和类。
When nose looks inside of a Python test module, it collects functions and classes that match the same regular expression that it USES for choosing test modules.
因此,正则表达式 A*B将与字符串AB 、AAB 、AAAB或任何其它以 A 开头并以单个 B 为结尾的字符串相匹配。
Therefore the regular expression A*B will match the strings AB, AAB, AAAB, or any other string starting with an A and ending with a single B.
您可以将数据与正则表达式进行比较,如果它们匹配,则知道数据是有效的。
You can compare data to a regular expression; if they match, you know your data is valid.
可以根据进程表中正则表达式的匹配来启动、杀死、重启进程或发送任意信号。
Processes can be started, killed, restarted, or sent arbitrary signals based on regular expression matches in the process table.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
When specifying patterns in the element, realize that regular expressions are used to perform the matching and string replacement.
正则表达式是根据文本匹配模式的方法—类似于编译器生成类文件的工作原理。
Regular expressions are ways to match patterns against text — similar to how a compiler works to generate class files.
在其最简单的形式中,正则表达式可以匹配精确的字符序列。
In its simplest form, regular expressions can match exact sequences of characters.
样式表将首先使用正则表达式 /*匹配所传递的文档的根元素。
The stylesheet starts by matching the root element of the document that it is passed, using the regular expression /*.
查看该代码,可以看到正则表达式模式被设置为匹配某个包含20- 29%的行。
Looking at the code, you can see that the regular expression pattern was set to match a line that contained 20-29%.
匹配正则表达式模式的单词将会被屏蔽。
Words that match the patterns of the regular expressions are selected to be redacted.
对变量名长度的支持需要进一步了解如何使用正则表达式进行语法匹配
Support for variable name lengths requires more understanding of the use of regular expressions in syntax match
然后,find函数搜索剧集列表以便使用与标题和摘要匹配的简单正则表达式来查找匹配项。
The find function then searches the episode list to find matches using a simple regular expression match on the title and the summary.
它现在是基于ICU架构而不是Oniguruma的正则表达式编译和模式匹配架构。
It is now using the ICU framework instead of Oniguruma for regular expression compilation and pattern matching.
它现在是基于ICU架构而不是Oniguruma的正则表达式编译和模式匹配架构。
It is now using the ICU framework instead of Oniguruma for regular expression compilation and pattern matching.
应用推荐