You request, I deliver :
let regex = /((\d{1,2}/\d{1,2}/\d{1,4} - \d{1,2}:\d{1,2}[AP]M)|(\d{1,2}/\d{1,2}/\d{1,4})|(\d{1,2}:\d{1,2}[AP]M))/
Use Scriptular to test, build, and understand regexes.
6
solved Regex for checking if JavaScript input is in a particular format? [closed]