# V007 The V007 analyzer reports usage of the deprecated [ValidateRegexp](https://godoc.org/github.com/hashicorp/terraform-plugin-sdk/helper/validation#ValidateRegexp) validation function that should be replaced with [StringIsValidRegExp](https://godoc.org/github.com/hashicorp/terraform-plugin-sdk/helper/validation#StringIsValidRegExp). ## Flagged Code ```go ValidateFunc: validation.ValidateRegexp, ``` ## Passing Code ```go ValidateFunc: validation.StringIsValidRegExp, ``` ## Ignoring Reports Singular reports can be ignored by adding the a `//lintignore:V007` Go code comment at the end of the offending line or on the line immediately proceding, e.g. ```go //lintignore:V007 ValidateFunc: validation.ValidateRegexp, ```