fixed regular expression

fixes #8
thanks to TonyHoyle