* @description * Validator that requires the control's value to match a regex pattern. This validator is also * provided by default if you use the HTML5 `pattern` attribute. * * @usageNotes * * ### Validate that the field only contains letters or spaces * * ```ts * const c
(pattern: string | RegExp)
| 416 | * |
| 417 | */ |
| 418 | static pattern(pattern: string | RegExp): ValidatorFn { |
| 419 | return patternValidator(pattern); |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | * @description |
no test coverage detected