✨
ysv
  • ysv
  • Installation
  • Usage
  • Configuration format
  • Configuration Language
    • Basics
    • input
    • Constants
    • String transformations
    • Date & time
  • Technology Choices
Powered by GitBook
On this page
  • uppercase
  • lowercase
  • replace
  • replace_regex

Was this helpful?

  1. Configuration Language

String transformations

uppercase

version: 1
columns:
  make:
    - input: make
    - uppercase

lowercase

version: 1
columns:
  make:
    - input: make
    - lowercase

replace

version: 1
columns:
  make:
    - input: make
    - replace:
        "MERCEDES-BENZ": "MERCEDES"
        "GM": "GENERAL MOTORS"

replace is cycling through every pattern (part to the left of :) and replaces it with the value (part to the right of :).

replace_regex

version: 1
columns:
  make:
    - input: email
    - replace_regex:
        pattern: "^0$"
        replace: ""
PreviousConstantsNextDate & time

Last updated 4 years ago

Was this helpful?