Test default Date value + associated formatting
regexp: better capture handling

Make the capture buffer the right size using re_nsub.
Documented in SUS but not wheezy's man page.
Check the size of the capture buffer correctly.

Add some simple tests.