I have a string variable as
$variable
and I have a pattern as like:
/<OPTION [^>]*>\D*([^<]+)/g
How can I print all the matched strings inside that variable and writing to console a newline character - \n after every matched string with Perl?