You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the internal command parse -r $regex* with a regex containing capture groups with no names (ex: (\w+)(\w)) it would name the groups capture0, capture1 and so on. This is inconsistent with the regex standard where capture group 0 is the full match, and individual capture group start from 1 onwards.
How to reproduce
Run this command 'test' | parse -r '(\w+)(\w)'
Expected behavior
I expect the parse -r command to return capture groups naming starting with index 1 rather than 0.
Describe the bug
When you use the internal command
parse -r $regex*
with a regex containing capture groups with no names (ex:(\w+)(\w)
) it would name the groupscapture0
,capture1
and so on. This is inconsistent with the regex standard where capture group 0 is the full match, and individual capture group start from 1 onwards.How to reproduce
'test' | parse -r '(\w+)(\w)'
Expected behavior
I expect the parse -r command to return capture groups naming starting with index 1 rather than 0.
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: