W3cubDocs

/Nushell

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

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

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

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_contains.html