Add regex support, test and examples to doco