Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Printing the count for regex matches

by Lawliet (Curate)
on Mar 10, 2009 at 01:28 UTC ( #749471=note: print w/ replies, xml ) Need Help??

in reply to Printing the count for regex matches

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.

Comment on Re: Printing the count for regex matches
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://749471]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2016-02-09 21:46 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (326 votes), past polls