- 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.
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- Web應(yīng)用系統(tǒng)開發(fā)實(shí)踐(C#)
- ThinkPHP 5實(shí)戰(zhàn)
- SQL語(yǔ)言從入門到精通
- Learn Swift by Building Applications
- Learning Laravel 4 Application Development
- 從Excel到Python:用Python輕松處理Excel數(shù)據(jù)(第2版)
- R語(yǔ)言與網(wǎng)絡(luò)輿情處理
- 21天學(xué)通C++(第5版)
- 軟件供應(yīng)鏈安全:源代碼缺陷實(shí)例剖析
- ASP.NET求職寶典
- Visual C++從入門到精通(第2版)
- C語(yǔ)言程序設(shè)計(jì)與應(yīng)用實(shí)驗(yàn)指導(dǎo)書(第2版)
- Access數(shù)據(jù)庫(kù)應(yīng)用教程(2010版)
- Mastering Python