A bare \d{6} matches order numbers and dates. Anchor the pattern to the words around the code, normalize the text and require exactly one match.