Declare @match before the loop (so that it is not overwritten each time), append any matches to @match, and move the print statement outside the while loop.
And you didn't even know bears could type.
In reply to Re: Printing the count for regex matches
by Lawliet
in thread Printing the count for regex matches
by learningperl01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |