Proper regex support.

@syamp