str ends-with
for strings
Check if an input ends with a string.
Signature
> str ends-with (string) ...rest --ignore-case
Parameters
string
: the string to match...rest
: For a data structure input, check strings at the given cell paths, and replace with result--ignore-case
(-i)
: search is case insensitive
Examples
Checks if string ends with '.rb'
> 'my_library.rb' | str ends-with '.rb'
true
Checks if string ends with '.txt'
> 'my_library.rb' | str ends-with '.txt'
false
Checks if string ends with '.RB', case-insensitive
> 'my_library.rb' | str ends-with -i '.RB'
true