print if (/(^\s*|\s+)0/); # A zero either: starting a line with possible whitespace in front, or anywhere in a line with necessary whitespace in front.