mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-04 11:25:37 +00:00
Typo in cats example
The quotation mark and closing parenthesis were swapped.
Before:
```
$ echo "Hello kitty" | yq eval 'test("(?i)cats)"'
Error: bad expression - probably missing close bracket on TEST
```
After:
```
$ echo "Hello kitty" | yq eval 'test("(?i)cats")'
false
```
This commit is contained in:
parent
b26de94758
commit
4155c99a12
@ -3,7 +3,7 @@
|
|||||||
## RegEx
|
## RegEx
|
||||||
This uses Golang's native regex functions under the hood - See their [docs](https://github.com/google/re2/wiki/Syntax) for the supported syntax.
|
This uses Golang's native regex functions under the hood - See their [docs](https://github.com/google/re2/wiki/Syntax) for the supported syntax.
|
||||||
|
|
||||||
Case insensitive tip: prefix the regex with `(?i)` - e.g. `test("(?i)cats)"`.
|
Case insensitive tip: prefix the regex with `(?i)` - e.g. `test("(?i)cats")`.
|
||||||
|
|
||||||
### match(regEx)
|
### match(regEx)
|
||||||
This operator returns the substring match details of the given regEx.
|
This operator returns the substring match details of the given regEx.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user