Get a summary of regexp options.
获得regex p选项摘要。
Common regexp modifiers are provided in Table 1.
表1给出了常用的regexp修饰符。
Suppose that you always use JDK 1.4's built-in regexp classes.
假定您一直在使用JDK 1.4的内置regexp类。
You can test the regexp you've just built, as shown in Listing 13.
现在可以对刚刚构建的regexp 进行测试,如清单13 中所示。
You see that one "ith" shows that the regexp didn't match uppercase letters.
其中有一个“ith”,这表明使用的regexp未匹配大写字母。
Outputs a copy of the input with all instances of regexp enclosed in brackets.
将输出输入内容的副本,并标明括号中包含的regexp的所有实例。
But which characters exactly on those lines of input did the regexp match?
但具体是这些行中的哪些字符与regexp匹配呢?
The core of this tag relies on Apache's regexp library to validate input values.
这个标签的核心依赖于Apache的regexp库对用户输入的值进行有效性验证。
A lot of tools and methods are available on UNIX systems for regexp building.
UNIX系统上提供了大量的工具和方法来构建regexp。
You can also do regexp highlighting in sed, the stream editor. The sed command.
还可以在sed(流编辑器,stream editor)中进行regexp突出显示。
However, if the regexp itself is not fixed, then the compilation process cannot be skipped.
但是,如果regexp本身不固定,则不能忽略编译过程。
With this Jacl version, the regexp command supports only TCL 8.0 regexp command syntax.
通过这个版本的Jacl,regexp命令仅仅支持tcl 8.0 regexp命令语法。
Up till now, we've taken a look at line addresses, line range addresses, and regexp addresses.
目前为止,我们已经看到了行地址、行范围地址和regexp 地址。
The team has spent time and money to learn and rewrite the code so it USES the regexp library.
团队已花费时间和财力来学习并重新编写代码,以使它使用regexp库。
Type / to select the programs and then type hkopqstx. so that only a regexp for grep will be built.
键入 /,以选择程序,然后键入hkopqstx.,从而仅为grep 构建regexp。
In the regexp world, there are some compiler options supported by only certain implementations.
在regexp领域中,一些编译器选项仅被某些实现支持。
In programming, a regular expression is written in a formal language, also known as regex or regexp.
在编程中,正则表达式是用一种形式语言编写的,也称为regex或regexp。
Note the use of the Regexp: : Common module, an indispensable resource for any Perl programmer today.
请注意Regexp:Common模块的使用,它是当今任何Perl程序员都必不可少的资源。
It outputs a regexp for one of several common patterns that are given as arguments, as listed in Table 2.
它可以输出作为参数给出的多个常见模式之一的regexp,如表2中所示。
Input files contain a regexp to test on a single line followed by any number of lines of data to test.
输入文件中包含用于测试单行(其后跟着多行待测试数据)的regexp。
I raise the same objection to the recommendations for using object literals, RegExp literals, and so forth.
我还对推荐使用Object字面值、RegExp字面值等等都提出相同的异议。
I start with a very simple regexp: Imagine that the text you have to parse is just the name of a person.
我从一个非常简单的regexp开始:假定您必须要解析的文本只是人名。
The regexp you've just built won't match them properly, as you'll see by showing only the matches (see Listing 11).
刚刚构建的regexp 将无法对其进行恰当的匹配,如仅显示匹配项中所示(请参见 清单 11)。
For example, you can use this to get a ready regexp for any valid hour in military time, as shown in Listing 15.
例如,你可以使用此工具来获取用于军事时间中任意有效时间的现成regexp,如清单15中所示。
For example, grep, sed, and other tools like them have man pages that describe their regexp syntax and give examples.
例如,grep、sed和其他类似的工具都提供了手册页,描述其regexp语法并提供相关示例。
When building a regexp, it helps to be able to see what strings the pattern matches in the context of a data set.
构建regexp时,这样可帮助在数据集上下文中查看模式与哪些字符串匹配。
The isearch-forward-regexp and isearch-backward-regexp functions are typically bound to the M-S-s and M-S-r keystrokes.
isearch-forward-regexp和 isearch-backward-regexp功能通常绑定到 M-S-s 和 M-S-r 键盘输入。
It's been designed following the approach just discussed and supports decoupling between the regexp library and the code that USES it.
已将它设计成遵循刚刚讨论的方法,并且它在regexp库和使用该库的代码之间支持去耦。
The compile method is suitable for being configured with flags, like EXTENDED_MASK. (See Resources for a more detailed regexp tutorial.)
compile方法适合用标志(如 EXTENDED_MASK )来配置(请参阅参考资料以获得更详细的regexp教程)。
Some of the newer versions of grep (such as GNU grep) highlights the regexp in color when you use the --color option, as shown in Figure 1.
一些较新版本的grep(如GNU grep )可在使用 --color选项时用颜色突出显示regexp,如 图 1 中所示。
应用推荐