I seem to be confused as to what a whitespace "\s" matches in a perl regexp. I had thought it should match a new line (ie "\n"), so was trying to use "(
+)\s" to match a number followed by EITHER a blank (which in turn can be followed by other characters, eg a comment) OR an end of line. But this fails to match the latter case.