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.
在編程中,正則表達式是用一種形式語言編寫的,也稱為regex或regexp。
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的所有單詞,則構建清單5中所示的regexp進行此工作。
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.
regexp在Perl語言中也很常用,但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.
現在已經選擇了自己所希望的準確內容,就應該可能看到所有三個應用程序所需的regexp,如圖4中所示。
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.
它可以輸出作為參數給出的多個常見模式之一的regexp,如表2中所示。
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(如GNUgrep)可在使用--color選項時用顏色突出顯示regexp,如圖1中所示。
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.
這個標簽的核心依賴于Apache的regexp庫對用戶輸入的值進行有效性驗證。
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會缺省為perl、php、postgres、python、sed和vim應用程序構建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,2006年7月)描述了使用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相當于:取空格前的第一段文本。