I have a program that creates information for a time stamp, the time stamp has to match the following format: MM/DD/YYYY HH:MM:SS AM or PM
MM/DD/YYYY HH:MM:SS AM or PM
For example:
This regex should work for you for validation of your inputs:
^\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{1,2}:\d{1,2} [AP]M\z
RegEx Demo
This will validate either of these inputs lines:
10/22/2016 9:15:32 PM 9/9/2016 9:9:5 AM