fix regex. fixes #385