You can begin by reading some regex documentation. The trailing "\s*" does nothing. It is interpreted as zero or more occurances of a whitespace character.
Here is a simple to understand regex review ...http://www.cs.tut.fi/~jkorpela/perl/regexp.html
As for more specific trouble.. it would help if you included lines that match from your file which you think should not.