GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • PATTERN
  • Signal Form Pattern Validation

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — pattern • Angular

API

function pattern<TPathKind extends PathKind = PathKind.Root>(
  path: SchemaPath<string, 1, TPathKind>,
  pattern: RegExp | LogicFn<string | undefined, RegExp | undefined, TPathKind>,
  config?: BaseValidatorConfig<string, TPathKind> | undefined,
): void;
@parampathSchemaPath<string, 1, TPathKind>

Path of the field to validate

@parampatternRegExp | LogicFn<string | undefined, RegExp | undefined, TPathKind>

The RegExp pattern to match, or a LogicFn that returns the RegExp pattern.

@paramconfigBaseValidatorConfig<string, TPathKind> | undefined

Optional, allows providing any of the following options:

  • error: Custom validation error(s) to be used instead of the default patternError() or a function that receives the FieldContext and returns custom validation error(s).
@returnsvoid
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.