String
String inspectors evaluate string data.
string.contains
Evaluates if a substring exists within a string.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.contains(
settings={value: 'abc'}
)
sub.cnd.str.has({value: 'abc'})
string.starts_with
Evaluates if a string starts with (prefix) a substring.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.starts_with(
settings={value: 'abc'}
)
sub.cnd.str.prefix({value: 'abc'})
string.ends_with
Evaluates if a string ends with (suffix) a substring.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.ends_with(
settings={value: 'abc'}
)
sub.cnd.str.suffix({value: 'abc'})
string.equal_to
Evaluates if a string is equal to the target_key string value or a static string value. Priority is given to the target_key if it exists.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.equal_to(
settings={value: 'abc'}
)
sub.cnd.str.eq({value: 'abc'})
string.greater_than
Evaluates if a string is greater than the target_key string value or a static string value. Priority is given to the target_key if it exists.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.greater_than(
settings={value: 'abc'}
)
sub.cnd.str.gt({value: 'abc'})
string.less_than
Evaluates if a string is less than the target_key string value or a static string value. Priority is given to the target_key if it exists.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
value | string | Value used during inspection. | Yes |
Example
sub.condition.string.less_than(
settings={value: 'abc'}
)
sub.cnd.str.lt(settings={value: 'abc'})
string.match
Evaluates if a string matches a regular expression.
Settings
Field | Type | Description | Required |
---|---|---|---|
object.source_key | string | Retrieves a value from an object for inspection. | No |
pattern | string | Regular expression pattern used during inspection. | Yes |
Example
sub.condition.string.match(
settings={pattern: '^abc$'}
)
sub.cnd.str.match({pattern: '^abc$'})
Updated 5 months ago