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相當于空格第一文本