Regex Quick Syntax Reference: Understanding and Using Regular Expressions
暫譯: 正則表達式快速語法參考:理解與使用正則表達式
Zsolt Nagy
- 出版商: Apress
- 出版日期: 2018-08-18
- 售價: $1,740
- 貴賓價: 9.5 折 $1,653
- 語言: 英文
- 頁數: 168
- 裝訂: Paperback
- ISBN: 1484238753
- ISBN-13: 9781484238752
海外代購書籍(需單獨結帳)
商品描述
This quick guide to regular expressions is a condensed code and syntax reference for an important programming technique. It demonstrates regex syntax in a well-organized format that can be used as a handy reference, showing you how to execute regexes in many languages, including JavaScript, Python, Java, and C#.
The Regex Quick Syntax Reference features short, focused code examples that show you how to use regular expressions to validate user input, split strings, parse input, and match patterns. Utilizing regular expressions to deal with search/replace and filtering data for backend coding is also covered.
You won’t find any bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise and highly accessible. The book is packed with useful information and is a must-have for any programmer.
What You Will Learn
- Formulate an expression
- Work with arbitrary char classes, disjunctions, and operator precedence
- Execute regular expressions and visualize using finite state machines
- Deal with modifiers, including greedy and lazy loops
- Handle substring extraction from regex using Perl 6 capture groups, capture substrings, and reuse substrings
Who This Book Is For
If you have dealt with at least one programming language, chances are you know enough to understand regular expressions, and the examples in this book will help you develop proficiency.
商品描述(中文翻譯)
這本《正則表達式快速語法參考》是針對一種重要的程式設計技術的簡明代碼和語法參考。它以良好組織的格式展示了正則表達式的語法,可以作為方便的參考,並向您展示如何在多種語言中執行正則表達式,包括 JavaScript、Python、Java 和 C#。
《正則表達式快速語法參考》包含簡短且專注的代碼範例,展示了如何使用正則表達式來驗證用戶輸入、分割字串、解析輸入和匹配模式。書中還涵蓋了利用正則表達式處理搜尋/替換和過濾數據以進行後端編碼的內容。
您不會在這本書中找到冗長的範例、拖沓的歷史課程或機智的故事。您會發現的是一本簡潔且易於理解的語言參考書。這本書充滿了有用的信息,是任何程式設計師的必備之選。
**您將學到的內容**
- 制定表達式
- 使用任意字符類、析取和運算符優先級
- 執行正則表達式並使用有限狀態機進行可視化
- 處理修飾符,包括貪婪和懶惰循環
- 使用 Perl 6 捕獲組、捕獲子字串和重用子字串來處理正則表達式的子字串提取
**本書適合誰**
如果您已經接觸過至少一種程式語言,那麼您很可能已經具備理解正則表達式的基礎知識,而本書中的範例將幫助您提高熟練度。