MENU

Fun & Interesting

Regular Expression Quantifiers: Greedy, Lazy, Possessive

RobertElderSoftware 2,675 5 years ago
Video Not Working? Fix It Now

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-expression-visualizer/ SOCIALS ---------------- Patreon: https://www.patreon.com/RobertElderSoftware?utm_source=yt&utm_medium=desc&utm_campaign=ytchannel&utm_content=YTMJ4E5qVkM Tiktok: https://www.tiktok.com/@roberteldersoftware Linkedin: https://linkedin.com/company/robert-elder-software Blog: https://blog.robertelder.org/?utm_source=yt&utm_medium=desc&utm_campaign=ytchannel&utm_content=YTMJ4E5qVkM Twitter: https://twitter.com/RobertElderSoft Twitch: https://www.twitch.tv/roberteldersoftware Github: https://github.com/RobertElderSoftware Facebook: https://www.facebook.com/RobertElderSoftware Instagram: https://www.instagram.com/roberteldersoftware/ Merch: https://store.robertelder.org/?utm_source=yt&utm_medium=desc&utm_campaign=ytchannel&utm_content=YTMJ4E5qVkM

Comment