如果该行与正则表达式匹配,则打印该行。
If the line matches the regular expression, then you print out that line.
这个功能非常简单,甚至不包含正则表达式匹配。
Its capability is very simple and does not even include regular expression matching.
正则表达式匹配空字符串?
“正则表达式匹配”为您提供最大的灵活性。
注意:这不是grep使用的正则表达式匹配。
Note that this is not regular expression matching as used by grep.
如果输入文本与正则表达式匹配,则该方法返回true。
If the input text matches the regular expression, what this method returns is true.
如何将智能引号正常报价时,正则表达式匹配?
PHP: How to convert smart quotes to normal quotes when regex matching?
首先,获得所有与一看起来非常复杂的正则表达式匹配的结果。
First, get all the matches with a regular expression that look pretty complex.
我可以做一个正则表达式匹配所有字符到;除\;?
这是包含被替换值替换了适当正则表达式匹配项的字符串。
This is the string that has the appropriate regular expressions matches replaced with the replacement value.
上面的正则表达式匹配h 1标签以及标签内的所有内容。
The above regular expression is looking for an h1 tag and all of its contents.
这个正则表达式匹配了开双引号,但同时找了不同类型的引号来关闭。
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.
可以根据进程表中正则表达式的匹配来启动、杀死、重启进程或发送任意信号。
Processes can be started, killed, restarted, or sent arbitrary signals based on regular expression matches in the process table.
在其最简单的形式中,正则表达式可以匹配精确的字符序列。
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 /*.
应用推荐