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:
Try this . I hope i understood your question. Tested here http://rubular.com/ and it works.
^(\d{1,2}\/){2}\d{4}\s+((\d+)(\:)){2}\d+\s+(AM|PM)