I'm currently coding a discord bot using javascript and I want to test if a message contains an hour. I managed to do it this way

```
var content = msg.content.toLowerCase();    // Get the content on the message
const nbs = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
var hours;
nbs.forEach(number => {
        if(content.includes(`${number}am`)) hours = `${number}AM`;  
        else if(content.includes(`${number}pm`)) hours = `${number}PM`;
})

```

But the problem I have is in this example I can't detect if the hour contains minutes like 10:15am for example. I thought about doing another array containing integers from 1 to 59 and doing another forEach inside the one I already have but I'm afraid it would slow the code down quite a bit. 

Is there a way I could test if the message contains an int between 2 values so I could have something like this ?

```
content.includes(`${hr}:${min}am`)

```