Test, validate and match regular expressions
Matches `<div>` elements that appear within `<p>` tags, specifically capturing `<div>...</div>` blocks preceded by text content. Uses `\G` anchor for consecutive matching and `\K` to return only the div content. The recursive `(?R)` enables continued searching after closing `</p>` tags. Ideal for HTML validation tasks to identify and fix block-level elements improperly nested inside paragraph tags.