Thank you for this excellent overview - RegEx is extremely useful for replacing, extracting and filtering. It is also a bit of a headache, even if RegEx 101 is helpful. Today I use Claude/ChatGPT or any AI to write my regex, effortless, explained in detail, and never fails.
Here’s Claude AI
Create a regex to extract all image URLs from a HTML document - use named capture groups for the url, using ECMAScript syntax.
<img\s+(?:[^>]*?\s+)?src=["'](?<url>https?:\/\/[^"']+)["'][^>]*>/gi