Skip to main content

This plugin validates data with regex pattern.

Project description

String Validator

This plugin validates data with regex pattern.

Configuration

This node requires configuration.

  • validation_regex - this is regex pattern.
  • data - data what we want to validate. this value can also be a path to date in profile, session, event.

Examples

{
  "validation_regex": "^H",
  "data": "payload@properties.hello"   // This will return e.g. Hello world
}

It will return payload on valid output port. invalid port will stay inactive.

{
  "validation_regex": "^a",
  "data": "hello!"  // Now we use plain string instead of path to data.
}

It will return payload on invalid output port. valid port will stay inactive.

Input

This node does not process input payload.

Output

This plugin has to port valid and invalid. Depending on validation result the appropriate ports will be launched with payload copied as data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracardi-regex-validator-0.6.1.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

tracardi_regex_validator-0.6.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page