1
0
mirror of https://github.com/nushell/nushell.git synced 2025-06-01 15:46:04 +02:00
JT 8c0a2d3c15
Auto-generate markdown command docs ()
* Finish updating

* a couple improvements

* Update renames

* cleanup examples
2022-02-13 21:22:51 -05:00

490 B

title, layout, version
title layout version
parse command 0.59.0

Parse columns from string data using a simple pattern.

Signature

> parse (pattern) --regex

Parameters

  • pattern: the pattern to match. Eg) "{foo}: {bar}"
  • --regex: use full regex syntax for patterns

Examples

Parse a string into two named columns

> echo "hi there" | parse "{foo} {bar}"

Parse a string using regex pattern

> echo "hi there" | parse -r "(?P<foo>\w+) (?P<bar>\w+)"