This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiregexValidation

regexValidation variable

regexValidation variable

Signature

regexValidation: (pattern: string | RegExp, errorMessage?: string | undefined) => ValidationRule

Import

import { regexValidation } from '@grafana/ui';