清单12显示了与grep命令一起使用的一些基本正则表达式。
Listing 12 shows some of the basic regular expressions used with the grep command.
但是该编辑器在许多方面都是保持基本的功能,例如,在搜索对话框中甚至不使用正则表达式。
But the editor remains basic in many ways -- not even using regular expressions in the search dialog, for example.
注意:本文假设读者基本了解Vim、Perl、make和正则表达式。
Note: This article assumes that you have basic familiarity with Vim, Perl, make, and regular expressions.
对于初学者的一个最好的建议就是:首先学习最基本的正则表达式(参阅资料部分,或“perldocperlre ”参考手册),稍后才进一步学习那些复杂的高级特性。
The best advice for the beginner is: learn the basics of regular expressions (see Resources or the "perldoc perlre" manual page), but stay away from the advanced features for a little while.
让我们忽略较复杂的选项,只关注正则表达式的基本语法。
Let's ignore the more complex options and just look at the basic syntax of a regular expression. Here are some examples.
正则表达式基本上就是为进行文本处理而构建的一种小型的子语言,用来进行字符串的匹配和替换。
Regular expressions are basically a small sub-language built for text processing, used to match and replace strings of characters.
在本文中,我们将介绍如何构建平面文件数据库,如何创建正则表达式,以及如何进行基本的搜索和显示。
In this article, we will cover building the flat-file database, regular-expression creation, and basic search and display.
正则表达式所采用的一些基本规则如下。
对基本的编程概念的理解,有助于自动化测试脚本的编写,例如设置变量、使用正则表达式、创建循环、读取数据头等等。
A basic understanding of programming concepts is helpful for tasks such as setting variables, using regular expressions, creating loops and extracting header data.
回溯既是正则表达式匹配功能基本的组成部分,又是正则表达式影响效率的常见原因。
Backtracking is both a fundamental component of regex matching and a frequent source of regex inefficiency.
让我们看看正则表达式的基本情况,来说明虽然正则表达式常被视为是“高级主题”,有时候它们也是非常简单的。
Let us look at the most basic of regular expressions now to show you that although res are sometimes considered an "advanced topic," they can also be rather simplistic.
让我们看看正则表达式的基本情况,来说明虽然正则表达式常被视为是“高级主题”,有时候它们也是非常简单的。
Let us look at the most basic of regular expressions now to show you that although res are sometimes considered an "advanced topic," they can also be rather simplistic.
应用推荐