- Java 9 Regular Expressions
- Anubhava Srivastava
- 144字
- 2021-07-02 18:58:34
Eager matching
At this point, it is important to understand one important behavior of regular expression engines, called eagerness. A regular expression engine performs a match operation from left to right in an input string. While matching a regex pattern against the input string, the regex engine moves from left to right and is always eager to complete a match, even though there are other alternative ways in the regular expression to complete the match. Once a substring is matched, it stops proceeding further and returns the match. Only when a character position fails to match all the possible permutations of the regular expression, then the regex engine moves character by character to attempt a match at the next position in the input string. While evaluating a regex pattern, the regex engine may move backwards (backtrack) one position at a time to attempt matching.
- Access 數據庫應用教程
- Building Mapping Applications with QGIS
- C語言程序設計案例式教程
- Mastering Apache Spark 2.x(Second Edition)
- MATLAB 2020從入門到精通
- Node.js:來一打 C++ 擴展
- Linux C編程:一站式學習
- NetBeans IDE 8 Cookbook
- C語言程序設計
- JavaScript腳本特效編程給力起飛
- Java EE企業級應用開發教程(Spring+Spring MVC+MyBatis)
- Geospatial Development By Example with Python
- Unity&VR游戲美術設計實戰
- 區塊鏈國產化實踐指南:基于Fabric 2.0
- ABAQUS6.14中文版有限元分析與實例詳解