Learning Regular Expressions
暫譯: 學習正規表達式

Ben Forta

商品描述

Learn to use one of the most powerful text processing and manipulation tools available
 
Regular expression experts have long been armed with an incredibly powerful tool, one that can be used to perform all sorts of sophisticated text processing and manipulation in just about every language and on every platform. That’s the good news. The bad news is that for too long, regular expressions have been the exclusive property of only the most tech savvy. Until now.
 
Ben Forta's Learning Regular Expressions teaches you the regular expressions that you really need to know, starting with simple text matches and working up to more complex topics, including the use of backreferences, conditional evaluation, and look-ahead processing. You’ll learn what you can use, and you’ll learn it methodically, systematically, and simply.
 
Regular expressions are nowhere near as complex as they appear to be at first glance. All it takes is a clear understanding of the problem being solved and how to leverage regular expressions to solve them.
  • Read and understand regular expressions
  • Use literal text and metacharacters to build powerful search patterns
  • Take advantage of advanced regular expression features, including lookahead and backreferences
  • Perform powerful search-and-replace operations in all major professional editing tools
  • Add sophisticated form and text processing to web applications
  • Search for files using command-line tools like grep and egrep
  • Use regular expressions in programming languages like JavaScript, Java, PHP, Python, Microsoft .NET, and C#, as well as in DBMSs including MySQL and Oracle
  • Work with phone numbers, postal codes, social security numbers, IP addresses, URLs, email addresses, and credit card numbers
Contents at a Glance
 
1 Introducing Regular Expressions
2 Matching Single Characters
3 Matching Sets of Characters
4 Using Metacharacters
5 Repeating Matches
6 Position Matching
7 Using Subexpressions
8 Using Backreferences
9 Looking Ahead and Behind
10 Embedding Conditions
11 Regular Expression Solutions to Common Problems
 
Appendix A Regular Expressions in Popular Applications and Languages

商品描述(中文翻譯)

學習使用最強大的文字處理與操作工具之一

 

正則表達式專家長期以來一直擁有一個極其強大的工具,這個工具可以用來在幾乎所有語言和平台上執行各種複雜的文字處理和操作。這是好消息。壞消息是,正則表達式長期以來僅僅是最懂技術的人的專屬工具。直到現在。

 

Ben Forta 的 學習正則表達式 教你真正需要知道的正則表達式,從簡單的文字匹配開始,逐步深入到更複雜的主題,包括使用回參考、條件評估和前瞻處理。你將學會如何使用這些工具,並且以有條理、系統化和簡單的方式學習。

 

正則表達式並不像乍看之下那麼複雜。所需的只是對所解決問題的清晰理解,以及如何利用正則表達式來解決這些問題。


  • 閱讀和理解正則表達式

  • 使用字面文字和元字符來構建強大的搜尋模式

  • 利用進階的正則表達式功能,包括前瞻和回參考

  • 在所有主要的專業編輯工具中執行強大的搜尋和替換操作

  • 為網頁應用程式添加複雜的表單和文字處理功能

  • 使用命令行工具如 grep 和 egrep 搜尋檔案

  • 在 JavaScript、Java、PHP、Python、Microsoft .NET 和 C# 等程式語言中使用正則表達式,以及在 MySQL 和 Oracle 等資料庫管理系統中使用

  • 處理電話號碼、郵遞區號、社會安全號碼、IP 地址、URL、電子郵件地址和信用卡號碼

內容概覽

 

1 介紹正則表達式

2 匹配單一字符

3 匹配字符集

4 使用元字符

5 重複匹配

6 位置匹配

7 使用子表達式

8 使用回參考

9 前瞻和回顧

10 嵌入條件

11 正則表達式解決常見問題

 

附錄 A 正則表達式在流行應用程式和語言中的應用

最後瀏覽商品 (20)