Software >> Development >> Languages >> Perl >> RegExp >> How to extract an array of matches from multiple line string

example, $html contains a html page with multiple a href tags to be extracted, then my @matches = ( $html =~ /(<a href=[\"]\/forum[?][\d+][^>]*>)/mgi );