Regular Expressions Cookbook (Paperback)

Jan Goyvaerts, Steven Levithan

  • 出版商: O'Reilly
  • 出版日期: 2009-06-01
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 510
  • 裝訂: Paperback
  • ISBN: 0596520689
  • ISBN-13: 9780596520687
  • 已過版

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

商品描述

This O'Reilly Cookbook provides more than a hundred recipes to help programmers use regular expressions to manipulate text and crunch data. Every programmer needs a grasp of regular expressions, but their power doesn't come without problems--even seasoned users often have trouble tackling performance issues. With recipes for popular programming languages such as C#, Java, JavaScript, Perl, PHP, Python, Ruby, and VB.NET, this book offers step-by-step solutions to scores of common tasks involving regular expressions. This cookbook will help you:

  • Understand the basics of regular expressions through a concise tutorial
  • Use regular expressions effectively in several programming and scripting languages
  • Learn how to validate and format input
  • Manage words, lines, special characters, and numerical values
  • Find solutions for using regular expressions in URLs, paths, markup, and data exchange
  • Learn the nuances of more advanced regex features
  • Understand how regular expression APIs differ from language to language
  • Write better regular expressions for custom needs

Whether you're a novice or an experienced user, Regular Expressions Cookbook will help deepen your understanding of this tool. You'll learn powerful new tricks, avoid language-specific gotchas, and save valuable time with this huge library of proven solutions to difficult, real-world problems.

商品描述(中文翻譯)

這本《O'Reilly Cookbook》提供了100多個食譜,幫助程式設計師使用正則表達式來操作文本和處理數據。每個程式設計師都需要掌握正則表達式的基礎知識,但是它們的強大功能也帶來了一些問題,即使是經驗豐富的使用者在處理性能問題時也常常遇到困難。本書提供了針對流行的程式語言(如C#,Java,JavaScript,Perl,PHP,Python,Ruby和VB.NET)的食譜,逐步解決了許多涉及正則表達式的常見任務。本書將幫助您:

- 通過簡潔的教程了解正則表達式的基礎知識
- 在多種程式設計和腳本語言中有效地使用正則表達式
- 學習如何驗證和格式化輸入
- 管理單詞、行、特殊字符和數值
- 在URL、路徑、標記和數據交換中使用正則表達式的解決方案
- 瞭解更高級正則表達式功能的細微差別
- 瞭解不同程式語言之間的正則表達式API的差異
- 為自定義需求撰寫更好的正則表達式

無論您是初學者還是有經驗的使用者,《Regular Expressions Cookbook》都將幫助您加深對這個工具的理解。您將學習到強大的新技巧,避免特定於語言的陷阱,並通過這個龐大的已證實解決方案庫,節省寶貴的時間解決困難的現實問題。