mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 12:07:28 +02:00
@ -145,9 +145,9 @@ consume as little input as possible while still producing a match.
|
||||
|
||||
[h4 Pocessive repeats]
|
||||
|
||||
By default when a repeated patten does not match then the engine will backtrack until
|
||||
By default when a repeated pattern does not match then the engine will backtrack until
|
||||
a match is found. However, this behaviour can sometime be undesireable so there are
|
||||
also "pocessive" repeats: these match as much as possible and do not then allow
|
||||
also "possessive" repeats: these match as much as possible and do not then allow
|
||||
backtracking if the rest of the expression fails to match.
|
||||
|
||||
=*+= Matches the previous atom zero or more times, while giving nothing back.
|
||||
|
Reference in New Issue
Block a user