Support for custom regex match string representation