I know this question has been asked many times but those examples aren’t working for me.
I’m trying to get the minute part of time in a single regular expression. What I have is:
minute = new RegExp(":[0-9]{1,2}").exec(time).toString().replace(":", "");
How can I get this done without using the .replace?
Use a capture group to get only what you want.