dfr contains for dataframe

Checks if a pattern is contained in a string.

WARNING

Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Signature

> dfr contains {flags} (pattern)

Parameters

  • pattern: Regex pattern to be searched

Input/output types:

inputoutput
anyany

Examples

Returns boolean indicating if pattern was found

> [abc acb acb] | dfr into-df | dfr contains ab
╭───┬───────╮
 # │   0   │
├───┼───────┤
 0 true
 1 false
 2 false
╰───┴───────╯