fixed length calculation in readRegex and handle multiple periods
travis'd