I want to wrap a span around the AM or PM in a time string. For example:
<span class="time">between 10:00AM and 14:00PM</span>
becomes:
<span class="time">between 10:00<span class="suffix am">AM</span> and 14:00<span class="suffix pm">PM</span></span>
Any clue on how to get the replace method to do this?