Log 2869 regex capture groups

Support for named capture groups and associated tests.
I would put this into a separate test.