make regexp match only dot seperated characters of any length