in reply to problems with regular expressions

Well, without more specifics as to when the zero will appear, try this:
print if (/(^\s*|\s+)0/); # A zero either: starting a line with possi +ble whitespace in front, or anywhere in a line with ne +cessary whitespace in front.

Update: suaveant's suggestion, above, is simpler and works just as well:   print if (/\b0/);

kelan


Yak it up with Fullscreen ChatterBox