- Java 9 Regular Expressions
- Anubhava Srivastava
- 140字
- 2021-07-02 18:58:34
Understanding the Core Constructs of Java Regular Expressions
Using Java as a regular expression flavor, in this chapter, we will go a bit deeper and learn in detail about anchors, quantifiers, boundary matchers, all the available character classes, negated character classes, predefined character classes, and character classes escaping rules, using Java as a reference point. You will also learn Unicode text matching, using regular expressions in Java. We will also cover greedy versus non-greedy (lazy matching) and the change of regular expression behavior with lazy matching.
We will cover the following topics in this chapter:
- Anchors and quantifiers
- Boundary matchers
- Character classes
- Regex escaping rules
- Escaping inside character classes
- Negated character classes
- Predefined character classes
- Unicode characters matching
- Greedy quantifiers
- Lazy quantifiers
- Possessive quantifiers
- Various embedded modes in regular expressions and their meaning
- Enabling/disabling regular expression modes inside the regex
推薦閱讀
- Python概率統計
- 零基礎學C++程序設計
- 算法基礎:打開程序設計之門
- jQuery開發基礎教程
- Getting Started with Laravel 4
- FPGA Verilog開發實戰指南:基于Intel Cyclone IV(進階篇)
- Android系統原理及開發要點詳解
- Android項目實戰:手機安全衛士開發案例解析
- Essential C++(中文版)
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- After Effects CC技術大全
- Microsoft HoloLens By Example
- Java程序設計入門(第2版)
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- C語言程序設計實驗指導與習題精解