Is there a way to get all matches of a regex pattern using JavaScript?
I'm making some code that will extract all links from a block of text. I have a regex pattern, I'm just wondering if there is a way to get all matches of that regex pattern? I've tried some code I…