Zoey Hewll

Results 55 comments of Zoey Hewll

> we'd have to know whether it was one entry or multiple. I know that today I can run: ``` > [""] | describe list > "" | describe string...

I've realised now, that parse will return multiple elements per input string if that string contains the pattern multiple times, whereas I'd previously only used `parse` to process the entire...

``` > let data = [{name: zoey github: zoybean} {name: mitch twitter:mmmmm}] > $data ─#─┬─name──┬─github──┬─twitter─ 0 │ zoey │ zoybean │ ❎ 1 │ mitch │ ❎ │ mmmmm ─#─┴─name──┴─github──┴─twitter─...

Just to dump my thought process: all that changed about the regex, between the one that worked and the one that didn't, was the labels and bracketing (in a way...

I hadn't even stopped to remember that `.` can match `\r` - I'd forgotten that it only excludes `\n`, not all line-end markers. I've devised a slightly more complex regex...

Running your command gives the wrong output (assuming `test.txt` contains my initial dummy dataset), but the following gives your output: `open test.txt | lines | parse --regex '^(?:(?P\d+-\d+-\d+)|event\s+(?P\w+))$'` Working forward...

I managed to do it with regex alone, and got exactly the output I wanted (modulo simple string ops), but it's not a pretty regex: ``` > open test.txt |...

I think my current ideal solution would be to have 2 basic versions: - a `str split-include` like what I defined above (but providing `--regex` as an option, not as...

Possibly related to nushell/reedline#620

Updated `nu`. The issue no longer happens with `hx` but a similar issue still happens with `nano`.