Regular Expressions Cookbook (Paperback)
暫譯: 正則表達式食譜 (平裝本)

Jan Goyvaerts, Steven Levithan

  • 出版商: O'Reilly
  • 出版日期: 2009-06-01
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 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 食譜提供了超過一百個範例,幫助程式設計師使用正規表達式來操作文本和處理數據。每位程式設計師都需要掌握正規表達式,但它們的強大並非沒有問題——即使是經驗豐富的使用者也常常在處理性能問題時遇到困難。本書針對 C#、Java、JavaScript、Perl、PHP、Python、Ruby 和 VB.NET 等流行程式語言提供了逐步解決方案,涵蓋了許多與正規表達式相關的常見任務。本食譜將幫助您:

- 通過簡明的教程理解正規表達式的基本概念
- 在多種程式和腳本語言中有效使用正規表達式
- 學習如何驗證和格式化輸入
- 管理單詞、行、特殊字符和數值
- 尋找在 URL、路徑、標記和數據交換中使用正規表達式的解決方案
- 學習更高級的正規表達式特性的細微差別
- 理解正規表達式 API 在不同語言中的差異
- 為自定義需求編寫更好的正規表達式

無論您是新手還是經驗豐富的使用者,《正規表達式食譜》都將幫助您加深對這個工具的理解。您將學到強大的新技巧,避免語言特定的陷阱,並利用這個龐大的經驗解決方案庫節省寶貴的時間,解決困難的現實問題。