Add, test and document support for the regexp type.