Introducing Regular Expressions (Paperback)

Michael Fitzgerald

  • 出版商: O'Reilly
  • 出版日期: 2012-08-28
  • 定價: $1,650
  • 售價: 8.0$1,320
  • 語言: 英文
  • 頁數: 154
  • 裝訂: Paperback
  • ISBN: 1449392687
  • ISBN-13: 9781449392680
  • 立即出貨(限量) (庫存=4)

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

相關主題

商品描述

If you’re a programmer new to regular expressions, this easy-to-follow guide is a great place to start. You’ll learn the fundamentals step-by-step with the help of numerous examples, discovering first-hand how to match, extract, and transform text by matching specific words, characters, and patterns.

Regular expressions are an essential part of a programmer’s toolkit, available in various Unix utlilities as well as programming languages such as Perl, Java, JavaScript, and C#. When you’ve finished this book, you’ll be familiar with the most commonly used syntax in regular expressions, and you’ll understand how using them will save you considerable time.

  • Discover what regular expressions are and how they work
  • Learn many of the differences between regular expressions used with command-line tools and in various programming languages
  • Apply simple methods for finding patterns in text, including digits, letters, Unicode characters, and string literals
  • Learn how to use zero-width assertions and lookarounds
  • Work with groups, backreferences, character classes, and quantifiers
  • Use regular expressions to mark up plain text with HTML5

商品描述(中文翻譯)

如果你是一位對正則表達式不熟悉的程式設計師,這本易於理解的指南是一個很好的起點。通過眾多的例子,你將逐步學習基本原理,並親自體驗如何通過匹配特定的單詞、字符和模式來進行文本的匹配、提取和轉換。

正則表達式是程式設計師工具箱中不可或缺的一部分,它們可以在各種Unix工具和編程語言(如Perl、Java、JavaScript和C#)中使用。當你完成這本書時,你將熟悉正則表達式中最常用的語法,並且你將明白使用它們將節省你大量的時間。

本書內容包括:
- 了解正則表達式是什麼以及它們的工作原理
- 學習正則表達式在命令行工具和各種編程語言中的差異
- 應用簡單的方法來查找文本中的模式,包括數字、字母、Unicode字符和字符串文字
- 學習如何使用零寬斷言和向前查找
- 使用分組、反向引用、字符類和量詞
- 使用正則表達式將純文本標記為HTML5