Regex modification for mlpack linear regression