Switch to matchFirst/matchAll for examples
Use documented unittest rather than code dup
Merge pull request #1856 from eco/do-not-use-match-in-docs

Switch to matchAll() and matchFirst() in std.regex doc examples