Hello, I'm just wondering how you would go about exporting the matches that regex finds. For example, if I were to have the following code, which matches all the digits in a string and (supposedly) reads them into an array, which is then displayed:
@numbers = ($string =~ /\d*/);
print @numbers;
how would I make the array hold all those matches? Right now, it just sets each array to a value of 1, which I assume stands for true. So the regex returns a true/false value. How do I get the actual numbers that were matched to be put into the array?