Skip to main content
Maps an input value to an output value by matching it (as a string) against an ordered list of regular expressions. First match wins. Use it for translating source-system codes to your domain values, splitting on a status field, or normalizing free-text input.

Configuration

  • Rows — ordered mapping rules. Each row has a regex pattern, an output value, and the type the output should be cast to.
  • Fallback row — used when no row matches. Without one, unmatched inputs produce nothing.

Tips

  • Rules are tried in order — put more specific patterns above broader catch-alls.
  • Inputs are stringified before matching, so number and date inputs work too. Use ^...$ anchors when you want exact matches.

Ports