in reply to Re: Printing the count for regex matches
in thread Printing the count for regex matches

Nice try, but what will happen if you have more than one string matching in one line? You will only catch the first one and miss all subsequent ones.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re^2: Printing the count for regex matches