Text & patterns
Scalar
parse_filename()
Returns the last component of the path similarly to Python's os.path.basename function. If trim_extension is true, the file extension will be removed (defaults to false). separator options: system, both_slash (default), forward_slash, backslash.
Arguments & returns
4 overloadsparse_filename(string)
Scalar
| Overload link | string |
Returns |
|---|---|---|
| #01 | VARCHAR |
VARCHAR |
parse_filename(string, trim_extension)
Scalar
parse_filename(string, trim_extension, separator)
Scalar
| Overload link | string | trim_extension | separator |
Returns |
|---|---|---|---|---|
| #04 | VARCHAR | BOOLEAN | VARCHAR |
VARCHAR |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.