Mastering Regular Expressions, 3/e (Paperback)

Jeffrey E. F. Friedl

買這商品的人也買了...

商品描述

Description

Regular expressions are an extremely powerful tool for manipulating text and data. They are now standard features in a wide range of languages and popular tools, including Perl, Python, Ruby, Java, VB.NET and C# (and any language using the .NET Framework), PHP, and MySQL.

If you don't use regular expressions yet, you will discover in this book a whole new world of mastery over your data. If you already use them, you'll appreciate this book's unprecedented detail and breadth of coverage. If you think you know all you need to know about regular expressions, this book is a stunning eye-opener.

As this book shows, a command of regular expressions is an invaluable skill. Regular expressions allow you to code complex and subtle text processing that you never imagined could be automated. Regular expressions can save you time and aggravation. They can be used to craft elegant solutions to a wide range of problems. Once you've mastered regular expressions, they'll become an invaluable part of your toolkit. You will wonder how you ever got by without them.

Yet despite their wide availability, flexibility, and unparalleled power, regular expressions are frequently underutilized. Yet what is power in the hands of an expert can be fraught with peril for the unwary. Mastering Regular Expressions will help you navigate the minefield to becoming an expert and help you optimize your use of regular expressions.

Mastering Regular Expressions, Third Edition, now includes a full chapter devoted to PHP and its powerful and expressive suite of regular expression functions, in addition to enhanced PHP coverage in the central "core" chapters. Furthermore, this edition has been updated throughout to reflect advances in other languages, including expanded in-depth coverage of Sun's java.util.regex package, which has emerged as the standard Java regex implementation.Topics include:

  • A comparison of features among different versions of many languages and tools
  • How the regular expression engine works
  • Optimization (major savings available here!)
  • Matching just what you want, but not what you don't want
  • Sections and chapters on individual languages

Written in the lucid, entertaining tone that makes a complex, dry topic become crystal-clear to programmers, and sprinkled with solutions to complex real-world problems, Mastering Regular Expressions, Third Edition offers a wealth information that you can put to immediate use.

Reviews of this new edition and the second edition:

"There isn't a better (or more useful) book available on regular expressions."
--Zak Greant, Managing Director, eZ Systems

"A real tour-de-force of a book which not only covers the mechanics of regexes in extraordinary detail but also talks about efficiency and the use of regexes in Perl, Java, and .NET...If you use regular expressions as part of your professional work (even if you already have a good book on whatever language you're programming in) I would strongly recommend this book to you."
--Dr. Chris Brown, Linux Format

"The author does an outstanding job leading the reader from regex novice to master. The book is extremely easy to read and chock full of useful and relevant examples...Regular expressions are valuable tools that every developer should have in their toolbox. Mastering Regular Expressions is the definitive guide to the subject, and an outstanding resource that belongs on every programmer's bookshelf. Ten out of Ten Horseshoes."
--Jason Menard, Java Ranch

商品描述(中文翻譯)

描述

正則表達式是一種極其強大的操作文本和數據的工具。它們現在已成為許多語言和流行工具的標準功能,包括Perl、Python、Ruby、Java、VB.NET和C#(以及使用.NET Framework的任何語言)、PHP和MySQL。

如果您還沒有使用正則表達式,這本書將為您展示一個全新的掌握數據的世界。如果您已經在使用它們,您將欣賞到本書前所未有的詳細和廣泛的涵蓋範圍。如果您認為您已經知道所有關於正則表達式的知識,這本書將給您帶來驚人的啟發。

正如本書所展示的,掌握正則表達式是一項寶貴的技能。正則表達式允許您編寫複雜而微妙的文本處理,您從未想過可以自動化。正則表達式可以節省您的時間和煩惱。它們可以用於解決各種問題的優雅解決方案。一旦您掌握了正則表達式,它們將成為您工具箱中不可或缺的一部分。您會想知道在沒有它們的情況下,您是如何度過的。

然而,儘管正則表達式廣泛可用、靈活且功能強大,但它們往往被低估。然而,對於專家來說,權力可能對於不謹慎的人來說充滿危險。《正則表達式大師》將幫助您在成為專家的過程中避開這個雷區,並幫助您優化正則表達式的使用。

《正則表達式大師》第三版現在包括一個完整的章節專門介紹PHP及其強大而表達性豐富的正則表達式函數套件,此外,中心“核心”章節中的PHP內容也得到了增強。此外,本版全面更新,以反映其他語言的進展,包括擴展了對Sun的java.util.regex包的深入涵蓋,該包已成為標準的Java正則表達式實現。主題包括:

- 不同版本的許多語言和工具之間的功能比較
- 正則表達式引擎的工作原理
- 優化(在這裡可以節省大量時間!)
- 只匹配您想要的內容,而不匹配您不想要的內容
- 個別語言的章節

以程序員易於理解、娛樂性十足的風格撰寫,並提供了解決複雜現實世界問題的解決方案,《正則表達式大師》第三版提供了大量的信息,您可以立即使用。

關於這本新版和第二版的評論:

“沒有比這本書更好(或更有用)的書了。”