dfr contains for dataframe

Checks if a pattern is contained in a string.

Signature

> dfr contains {flags} (pattern)

Parameters

  • pattern: Regex pattern to be searched

Input/output types:

input output
any any

Examples

Returns boolean indicating if pattern was found

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

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