I am trying to retrieve and format the time via XML
<match time="8:20 PM" contestID="96775" formatted_date="16.09.2021" status="Not Started">
I am able to to get the string as 8:20 PM which I would like to string the PM or AM in the sting.
If I use the following:
myString.replace(/\D/g,'');
It strips the : which I still require.
Can anyone help me with the reg. expression I need for my issue?
UPDATE
Wanted result should be 8:20