I need to only allow times between 9am-4pm.

Currently, I have: 

```
/([01]?[0-9]|2[0-3]):([0-5][0-9])[APap][mM]/ 

```

which works to verify the format `hh:mmPM` (not case sensitive).

I am terrible at regex, but is there a way to write it so it only allows times like:

```
9:(0-59)AM
10:(0-59)AM 
11:(0-59)AM

```

For example: it should allow `9:05AM` but not allow `8:59AM`.

Respectively, I would also need another regex for:

```
12:(0-59)PM
1:(0-59)PM 
2:(0-59)PM
3:(0-59)PM

```

For example: it should allow `3:05PM` but not allow `4:01PM`.

my current code for my validation:

```
var time = document.forms["presentation"]["presentation-time"].value;
if (!/([01]?[0-9]|2[0-3]):([0-5][0-9])[APap][mM]/.test(time)) {
    $("#timeError").show();
    $("#presentation-time").focus();
    return false;
}
else {
     $('#timeError').hide();
}

```

I was thinking of doing && in the if statement for the rest of the validation.