Regular Expression Quantifiers: Greedy, Lazy, Possessive

Опубликовано: 01 Ноябрь 2024
на канале: RobertElderSoftware
2,131
80

This video provides an explanation of how regular expression quantifiers work. It covers greedy, lazy and possessive quantifiers. Various examples and diagrams are provided. The explanations focus on considering a quantifier as a 'range' that specifies the minimum and maximum number of times a part of the regex should be repeated. A detailed explanation of the concept of backtracking is also provided.


The visualizations of the regular expression engine were created using this tool:


https://blog.robertelder.org/regular-...

SOCIALS
----------------
Patreon: https://www.patreon.com/RobertElderSo...
Tiktok:   / roberteldersoftware  
Linkedin:   / robert-elder-software  
Blog: https://blog.robertelder.org/?utm_sou...
Twitter:   / roberteldersoft  
Twitch:   / roberteldersoftware  
Github: https://github.com/RobertElderSoftware
Facebook:   / roberteldersoftware  
Instagram:   / roberteldersoftware  
Merch: https://store.robertelder.org/?utm_so...