出版时间:2005-9 出版社:东南大学出版社 作者:弗里德尔 页数:460
Tag标签:无
内容概要
正则表达式是一种用来操作文本和数据的强大工具。近年来,它们快速广泛传播,并被多种流行工具和语言作为标准特性提供,如Perl、Java、VB.NET、C#(及任何使用.NET框架的语言)、PHP、Python、Ruby、Tcl、MySQL、awk、Emacs等。 如果还未使用过正则表达式,从本书中您将发现一个掌控数据的全新世界。如果使用过它们,您将会充分意识到本书空前的深度和广度。如果您认为自己已经掌握了所有需要掌握的正则表达式知识,本书将让您大开眼界。 尽管正则表达式具有易用、灵活、功能强大的优点,但我们往往未能充分利用它们。正则表达式可以将那些原本复杂且繁琐的文本处理过程变成可自动处理的工作。正则表达式能够为您节省时间、减少烦恼。它们可以用来为大量问题编制出一流的解决方案。 正则表达式是一项重要技术。然而,在专家手中强大的工具同样会因为使用上的不慎而带来危险。《精通正则表达式》能够帮助您跨越雷区,成为专家。一旦掌握了正则表达式,它们将成为您的工具箱中极其重要、不可或缺的一部分。 《精通正则表达式(第二版)》已被全面更新,涵盖了Perl 5.8及其他诸如Java、VB.NET、C#、Python、JavaScript、Tcl、Ruby等语言提供的全部新特性。本书用明晰、轻快的文笔,将原本复杂、乏味的主题清楚明白地展现在数以千计的程序员面前,并辅以一些真实世界中复杂问题的解决方案。《精通正则表达式》提供了大量可供直接使用的信息。 本书的主题包括: · 多种语言和工具不同版本之间的特性比较 · 正则表达式引擎的工作机制 · 优化(提供主要方法) · 如何精确匹配 · 针对特定语言的探讨
作者简介
作者:(美国)弗里德尔
书籍目录
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
图书封面
图书标签Tags
无
评论、评分、阅读与下载