Regex indizes had off by one error