Java Regular Expressions: Taming the java.util.regex Engine

Mehran Habibi

  • 出版商: Apress
  • 出版日期: 2004-02-11
  • 售價: $1,550
  • 貴賓價: 9.5$1,473
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 1590591070
  • ISBN-13: 9781590591079
  • 相關分類: Java 程式語言
  • 海外代購書籍(需單獨結帳)

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

商品描述

Java has always been an excellent language for working with objects. However, Java’s text manipulation mechanisms have always been somewhat limited, especially when compared to languages such as AWK and Perl. The introduction of an excellent regular expressions package into Java 2 Standard Edition (J2SE) rectifies this. The new java.util.regex package offers everything a developer needs to use regular expressions, all packaged in an easy-to-use, object-oriented framework.

This book is a valuable reference for learning about regular expressions in Java. It focuses on the use of regular expressions in the Java language. This book offers working examples, best practices, an extremely detailed API reference with examples for almost every method, and a step-by-step tutorial on how to go about forming your own regular expressions.

You will find that regular expressions can be an extremely powerful tool in your programming arsenal, as well an elegant instrument that you will enjoy using. After mastering these tools, you will wonder at how you ever managed without them.

Contents:

Chapter 1 Regular Expressions
Chapter 2 Introduction to the Java.util.regex Object Model
Chapter 3 Advanced Regex
Chapter 4 Object-Oriented Regex
Chapter 5 Practical Examples
Appendix A Regular Expression Reference
Appendix B Pattern and Matcher Methods
Appendix C Common Regex Patterns

商品描述(中文翻譯)

Java一直以來都是一個優秀的物件導向語言。然而,與像AWK和Perl這樣的語言相比,Java的文本處理機制一直相對有限。Java 2 Standard Edition (J2SE) 引入了一個優秀的正則表達式套件,解決了這個問題。新的java.util.regex套件提供了開發人員使用正則表達式所需的一切,並且以易於使用的面向對象的框架打包。

這本書是學習Java中正則表達式的寶貴參考資料。它專注於在Java語言中使用正則表達式。本書提供了實用的示例、最佳實踐、非常詳細的API參考(幾乎每個方法都有示例)以及一個逐步教程,教你如何構建自己的正則表達式。

你會發現正則表達式在你的編程工具中是一個非常強大的工具,同時也是一個優雅的工具,你會喜歡使用它。掌握了這些工具後,你會對自己以前如何在沒有它們的情況下進行編程感到驚訝。

目錄:
第1章 正則表達式
第2章 Java.util.regex對象模型介紹
第3章 高級正則表達式
第4章 面向對象的正則表達式
第5章 實用示例
附錄A 正則表達式參考
附錄B Pattern和Matcher方法
附錄C 常見的正則表達式模式