regexp

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 next regexp you used in the Show only the matches, not the lines section was for a single word containing "th" anywhere in the word.

显示匹配部分显示部分使用另一个regexp用于单词任何位置包括th单个单词

I start with a very simple regexp: Imagine that the text you have to parse is just the name of a person.

一个非常简单regexp开始假定必须解析文本只是人名

In programming, a regular expression is written in a formal language, also known as regex or regexp.

编程表达式一种形式语言编写称为regexregexp

However, if the regexp itself is not fixed, then the compilation process cannot be skipped.

但是如果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)。

Methods, the new approach implies delegating the core of the parser logic and replacing it with a regexp library.

方法代码意味解析器逻辑核心委托出去替换regexp

Your system might have a lot more documentation, including man pages, on building and using regexps than you might realize.

系统可能提供很多有关可能实现regexp构建使用方面文档包括手册)。

to exit the program; the regexps for the various applications will remain listed on your terminal.

退出程序适用各个应用程序regexp继续显示终端

Say you want to output all the words in the test file containing the string th, and you've built the regexp shown in Listing 5 to do that.

假定希望输出测试文件包含字符串th所有单词构建清单5regexp进行工作

However, developers need to know about regexp syntax to understand how such code works.

但是开发人员需要了解regexp语法理解这些代码如何工作

This appendix is a summary, with examples, of the special characters and constructs that can be used in MySQL for REGEXP operations.

附录归纳MySQL可用REGEXP操作特殊字符结构一些示例

Regexps are also popularly used in the Perl language, but Perl regexps are different from those you'd build using grep.

regexpPerl语言常用Perlregexp使用grep构建regexp不同

It's been designed following the approach just discussed and supports decoupling between the regexp library and the code that uses it.

设计遵循刚刚讨论方法并且regexp使用代码之间支持去耦

Beyond that, it also described the advantages of using an additional layer to decouple client code from the regexp engine itself.

除此之外本文描述使用附加去除客户机代码regexp引擎本身之间耦合好处

The --showinfo option just outputs a brief summary of information about building regexps for a particular program or language.

showinfo选项直接输出关于构建特定程序语言regexp信息简短摘要

Now that you've selected exactly what you want, you can see the desired regexps for all three applications in Figure 4.

现在已经选择自己希望准确内容应该可能看到所有三个应用程序regexp4

MySQL uses the extended version to support pattern-matching operations performed with the REGEXP operator in SQL statements.

MySQL采用扩展版本支持SQL语句REGEXP操作符一起使用模式匹配操作

If your shell supports escape sequences, you can highlight all the regexps in the context of the file.

如果外壳支持转义序列可以文件上下文突出显示所有regexp

Up till now, we've taken a look at line addresses, line range addresses, and regexp addresses.

目前为止我们已经看到地址范围地址regexp地址

It outputs a regexp for one of several common patterns that are given as arguments, as listed in Table 2.

可以输出作为参数多个常见模式之一regexp2

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.

一些较新版本grepGNUgrep使用--color选项颜色突出显示regexp1

The properties of the RegExp object are not available when running in fast mode, the default for JScript.

快速模式JScript默认模式运行RegExp对象属性可用

Because the regexp only matches dollar amounts that begin with a -, our branch will only happen if we happen to be dealing with a debit.

因为规则表达-开始美元金额匹配所以分支恰巧处理借款发生

The txt2regex script is an interactive, cross-platform regexp "wizard" built for the Bash shell.

txt2regex脚本针对Bash外壳构建平台交互regexp向导”。

Input files contain a regexp to test on a single line followed by any number of lines of data to test.

输入文件包含用于测试单行其后跟着测试数据regexp

outputs a copy of the input with all instances of regexp enclosed in brackets.

输出输入内容副本标明括号包含regexp所有实例

The core of this tag relies on Apache's regexp library to validate input values.

这个标签核心依赖Apacheregexp用户输入进行有效性验证

regexp: test checks whether a string entirely matches a regular expression pattern.

test检查字符串是否表达式模式完全匹配

With no options, txt2regex defaults to build regexps for the perl, php, postgres, python, sed, and vim applications.

没有选项情况,txt2regex缺省perlphppostgrespythonsedvim应用程序构建regexp

Note the use of the Regexp: : Common module, an indispensable resource for any Perl programmer today.

注意Regexp::Common模块使用当今任何Perl程序员必不可少资源

"Hone your regexp pattern-building skills" (developerWorks, July 2006) describes more useful ways to use grep.

磨练构建表达式模式技能”(developerWorks,20067月)描述使用grep有用方法

It'll become specific for your regexp later.

后来regexp变得具体

You can test the regexp you've just built, as shown in Listing 13.

现在可以刚刚构建regexp进行测试清单13

The list of regexps will remain on your terminal.

regexp列表继续显示终端

This regexp will match the entire contents of the three lines we just appended to the pattern space.

这个规则表达刚刚附加模式空间全部内容匹配

regexp: replace replaces substrings that match a regular expression pattern.

replace替代匹配表达式模式子字符串

regExp : Regular expression to validate the field.

regExp用于检验字段表达式

But which characters exactly on those lines of input did the regexp match?

具体这些哪些字符regexp匹配呢?

So, this regexp is equivalent to: Take the first text that precedes a space.

因此regexp相当于空格第一文本