Skip to content

Commit

Permalink
PR feedback: Add a newline
Browse files Browse the repository at this point in the history
Co-authored-by: Noah Treuhaft <[email protected]>
  • Loading branch information
philrz and nwt authored Jun 3, 2024
1 parent ca9c836 commit 340fd98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/language/functions/regexp_replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ echo '"option: value"' | zq -z 'yield regexp_replace(this,/(?P<key>\w+):\s+(?P<v
```

Wrap a named reference in curly braces to avoid ambiguity:

```mdtest-command
echo '"option: value"' | zq -z 'yield regexp_replace(this,/(?P<key>\w+):\s+(?P<value>\w+)$/,"$key=${value}AppendedText")' -
```
Expand Down

0 comments on commit 340fd98

Please sign in to comment.