in reply to Working with regexes

did you try to chomp the line before parsing?