Test, validate and match regular expressions
This regex captures content before each `<hr />` horizontal rule tag in HTML text. The `s` flag enables the dot to match newlines, allowing multi-line captures, while the lazy quantifier stops at the first `<hr />` encountered. With the global `g` flag, it finds all occurrences throughout the string. Useful for parsing HTML documents to extract sections separated by horizontal rules or splitting content by these dividers.