Fix up the regular expression used for processed text