Have you used the debugger on this script, and really looked at what each each $line looks like?
throop
In reply to Re: Help with regex by throop in thread Help with regex by ChuckularOne