fixing lazy ass regular expression match