make the regexp reference also retrieve the placeholders.