Unable to print regex registered variable in Ansible

It's not entirely clear what you mean by this.
Can you post an example httpd.conf, and what you want to get out of it?