Learn Before
Concept
Non-greedy Matching in Regular Expression
The patterns are non-greedy when regular expressions match as little text as possible. For example, the operator *? and +? both enable non-greedy matching.
0
1
Updated 2022-06-26
Tags
Data Science
Related
Regular expression reference
Basic Regular Expression Patterns
Operator precedence hierarchy
Greedy/ non-greedy matching
False positive and false negative errors for regex matching
Regular Expression Cheatsheet
Capture Group
Non-capturing Group
Lookhead Assertion
Greedy Matching in Regular Expression
Non-greedy Matching in Regular Expression