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 {"result":true}

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

It will return {"result":false}

Input

This node does not process input payload.

Output

This is two outputs {"result":true} and {"result":false}.

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.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

tracardi_regex_validator-0.6.0-py3-none-any.whl (7.3 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