Add link to string operator docs in select article

This commit is contained in:
neuroevolutus 2023-03-12 13:22:24 -05:00
parent 8693e3661b
commit df33254afc
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ going
```
## Select elements from array with regular expression
See more regular expression examples under the `string` operator docs.
See more regular expression examples under the [`string` operator docs](https://mikefarah.gitbook.io/yq/operators/string-operators).
Given a sample.yml file of:
```yaml

View File

@ -57,7 +57,7 @@ var selectOperatorScenarios = []expressionScenario{
},
{
description: "Select elements from array with regular expression",
subdescription: "See more regular expression examples under the `string` operator docs.",
subdescription: "See more regular expression examples under the [`string` operator docs](https://mikefarah.gitbook.io/yq/operators/string-operators).",
document: `[this_0, not_this, nor_0_this, thisTo_4]`,
expression: `.[] | select(test("[a-zA-Z]+_[0-9]$"))`,
expected: []string{