Log 2869 regex capture groups

Support for named capture groups and associated tests.
I think we have to handle here the case when there is no match