Question : Rsyslog template regular expression

I have my dhcpd.conf file loggin dhcp requests in the following format:

==> DATA Lease 206.10.75.30 from MAC 0:18:39:fd:7d:91 (---) assigned to AID: CO TEST CID: --- has committed

The template that I have parses the message portion based upon spaces and sends the data to a mysql database.  The problem that I am having is that the AID: portion (as seen above) may include spaces.  I need to figure out how to create reqular expressions to parse the data so that I send the full portion between AID: and CID:

Thanks

Answer : Rsyslog template regular expression

This forum thread has some good info on getting regex's working in rsyslog:
http://kb.monitorware.com/regular-expressions-with-rsyslogd-t10055.html

Also, I found this tool:
http://www.rsyslog.com/user-regex.php

Screenshot attached of my test. I had to remove the ? from the pattern I provided to get it working.
Random Solutions  
 
programming4us programming4us