正则表达式是一种用来操作文本和数据的强大工具。近年来,它们快速广泛传播,并被多种流行工具和语言作为标准特性提供,如Perl、Java、VB.NET、C#(及任何使用.NET框架的语言)、PHP、Python、Ruby、Tcl、MySQL、awk、Emacs等。 如果还未使用过正则表达式,从本书中您将发现一个掌控数据的全新世界。如果使用过它们,您将会充分意识到本书空前的深度和广度。如果您认为自己已经掌握了所有需要掌握的正则表达式知识,本书将让您大开眼界。 \r\n 尽管正则表达式具有易用、灵活、功能强大的优点,但我们往往未能充分利用它们。正则表达式可以将那些原本复杂且繁琐的文本处理过程变成可自动处理的工作。正则表达式能够为您节省时间、减少烦恼。它们可以用来为大量问题编制出一流的解决方案。 \r\n 正则表达式是一项重要技术。然而,在专家手中强大的工具同样会因为使用上的不慎而带来危险。《精通正则表达式》能够帮助您跨越雷区,成为专家。一旦掌握了正则表达式,它们将成为您的工具箱中极其重要、不可或缺的一部分。 \r\n 《精通正则表达式(第二版)》已被全面更新,涵盖了Perl 5.8及其他诸如Java、VB.NET、C#、Python、JavaScript、Tcl、Ruby等语言提供的全部新特性。本书用明晰、轻快的文笔,将原本复杂、乏味的主题清楚明白地展现在数以千计的程序员面前,并辅以一些真实世界中复杂问题的解决方案。《精通正则表达式》提供了大量可供直接使用的信息。 \r\n 本书的主题包括:\r\n · 多种语言和工具不同版本之间的特性比较\r\n · 正则表达式引擎的工作机制\r\n · 优化(提供主要方法)\r\n · 如何精确匹配\r\n · 针对特定语言的探讨\r\n
Preface\r\n1:Introductionc to Regular Expressions\r\n Solving Real Problems\r\n Regular Expressions as a Language\r\n The Filename Analogy\r\n The Language Analogy\r\n The Regular-Expression Frame of Mind\r\n If You Have Some Regular-Expression Experience\r\n Searching Text Files:Egrep\r\n Egrep Metacharacters\r\n Start and End of the Line\r\n Character Classes\r\n Matching Any Character with Dot\r\n Alternation\r\n Ignoring Differences in Capitalization\r\n Word Boundaries\r\n In a Nutshell\r\n Optional Items\r\n Other Quantifiers:Repetition\r\n Parentheses and Backreferences\r\n The Great Escape\r\n Expanding the Foundation\r\n Linguistic Diversification\r\n The Goal of a Regular Expression\r\n A Few More Examples\r\n Regular Expression Nomenclature\r\n Improving on the Status Quo\r\n Summary\r\n Personal Glimpses\r\n3:Extended Introductory Examples\r\n About the Examples\r\n A Short Introductioncto Perl\r\n Matching Text with Regular Expressions\r\n Toward a More Real-World Example\r\n SidecEffects of a Successful Match\r\n Intertwined Regular Expressions\r\n Intermission\r\n Modifying Text with Regular Expressions\r\n Example: FormcLetter\r\n Example:Prettifying a Stock Price\r\n Automated Editing\r\n A Small Mail Utility\r\n Adding Commas to a Number with Lookaround\r\n Text-to-HTML Conversion\r\n That Doubled-Word Thing\r\n3:Overview of Regular Expression Features and Flavors\r\n A Casual Stroll Across the Regex Land scape\r\n The Origins of Regular Expressions\r\n At a Glance\r\n Care and Handling of Regular Expressions\r\n Integrated Handling\r\n Procedural and Object-Oriented Handling\r\n A Search-and-Replace Example\r\n Search and Replace in Other Languages\r\n Care and Handling:Summary\r\n Strings,Character Encodings,and Modes\r\n Strings as Regular Expressions\r\n Character-Encoding Issues\r\n Regex Modes and Match Modes\r\n Common Metacharacters and Features\r\n Character Representations\r\n ……\r\n4:The Mechanics of Expression Processing\r\n5:Practical Regex Techniques\r\n6:Crafting an Efficient Expression\r\n7:Perl\r\n8:Java\r\n9:.NET\r\nIndex\r\n
无封面