出版時(shí)間:2005-9 出版社:東南大學(xué)出版社 作者:弗里德爾 頁數(shù):460
Tag標(biāo)簽:無
內(nèi)容概要
正則表達(dá)式是一種用來操作文本和數(shù)據(jù)的強(qiáng)大工具。近年來,它們快速廣泛傳播,并被多種流行工具和語言作為標(biāo)準(zhǔn)特性提供,如Perl、Java、VB.NET、C#(及任何使用.NET框架的語言)、PHP、Python、Ruby、Tcl、MySQL、awk、Emacs等。 如果還未使用過正則表達(dá)式,從本書中您將發(fā)現(xiàn)一個(gè)掌控?cái)?shù)據(jù)的全新世界。如果使用過它們,您將會充分意識到本書空前的深度和廣度。如果您認(rèn)為自己已經(jīng)掌握了所有需要掌握的正則表達(dá)式知識,本書將讓您大開眼界。 盡管正則表達(dá)式具有易用、靈活、功能強(qiáng)大的優(yōu)點(diǎn),但我們往往未能充分利用它們。正則表達(dá)式可以將那些原本復(fù)雜且繁瑣的文本處理過程變成可自動處理的工作。正則表達(dá)式能夠?yàn)槟?jié)省時(shí)間、減少煩惱。它們可以用來為大量問題編制出一流的解決方案。 正則表達(dá)式是一項(xiàng)重要技術(shù)。然而,在專家手中強(qiáng)大的工具同樣會因?yàn)槭褂蒙系牟簧鞫鴰砦kU(xiǎn)?!毒ㄕ齽t表達(dá)式》能夠幫助您跨越雷區(qū),成為專家。一旦掌握了正則表達(dá)式,它們將成為您的工具箱中極其重要、不可或缺的一部分。 《精通正則表達(dá)式(第二版)》已被全面更新,涵蓋了Perl 5.8及其他諸如Java、VB.NET、C#、Python、JavaScript、Tcl、Ruby等語言提供的全部新特性。本書用明晰、輕快的文筆,將原本復(fù)雜、乏味的主題清楚明白地展現(xiàn)在數(shù)以千計(jì)的程序員面前,并輔以一些真實(shí)世界中復(fù)雜問題的解決方案?!毒ㄕ齽t表達(dá)式》提供了大量可供直接使用的信息。 本書的主題包括: · 多種語言和工具不同版本之間的特性比較 · 正則表達(dá)式引擎的工作機(jī)制 · 優(yōu)化(提供主要方法) · 如何精確匹配 · 針對特定語言的探討
作者簡介
作者:(美國)弗里德爾
書籍目錄
Preface1:Introductionc to Regular Expressions Solving Real Problems Regular Expressions as a Language The Filename Analogy The Language Analogy The Regular-Expression Frame of Mind If You Have Some Regular-Expression Experience Searching Text Files:Egrep Egrep Metacharacters Start and End of the Line Character Classes Matching Any Character with Dot Alternation Ignoring Differences in Capitalization Word Boundaries In a Nutshell Optional Items Other Quantifiers:Repetition Parentheses and Backreferences The Great Escape Expanding the Foundation Linguistic Diversification The Goal of a Regular Expression A Few More Examples Regular Expression Nomenclature Improving on the Status Quo Summary Personal Glimpses3:Extended Introductory Examples About the Examples A Short Introductioncto Perl Matching Text with Regular Expressions Toward a More Real-World Example SidecEffects of a Successful Match Intertwined Regular Expressions Intermission Modifying Text with Regular Expressions Example: FormcLetter Example:Prettifying a Stock Price Automated Editing A Small Mail Utility Adding Commas to a Number with Lookaround Text-to-HTML Conversion That Doubled-Word Thing3:Overview of Regular Expression Features and Flavors A Casual Stroll Across the Regex Land scape The Origins of Regular Expressions At a Glance Care and Handling of Regular Expressions Integrated Handling Procedural and Object-Oriented Handling A Search-and-Replace Example Search and Replace in Other Languages Care and Handling:Summary Strings,Character Encodings,and Modes Strings as Regular Expressions Character-Encoding Issues Regex Modes and Match Modes Common Metacharacters and Features Character Representations ……4:The Mechanics of Expression Processing5:Practical Regex Techniques6:Crafting an Efficient Expression7:Perl8:Java9:.NETIndex
圖書封面
圖書標(biāo)簽Tags
無
評論、評分、閱讀與下載