Skip to content
Corex

RuleRegistry

Corex\Forms\Validation\RuleRegistry · class · Forms layer

Maps a rule name to its Rule instance and parses a rule spec (“max:80”) into a name and its parameters. Built-ins cover the complete flow contract while extensions may register additional rules; unknown names are never accepted.

Split “name:param1,param2” into its name and parameter list. A pattern: is the exception: everything after the colon is the expression, and pattern:^\d{2,4}$ split on its comma is two halves of one.