Matching many when valid line exists

I am pulling my hair out trying to make a regex that will 1) Validate an entire line of input 2) Return any number of matches in the line The condition is that any number of product codes must exist on a line separated a space. It may or may not start or end with spaces. The product code is a 10 digit number.