added regex documentation