mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
Fixing string docs
This commit is contained in:
parent
5d225b9454
commit
523b8335d8
@ -1,7 +1,9 @@
|
||||
# String Operators
|
||||
|
||||
## RegEx
|
||||
This uses golangs native regex functions under the hood - See https://github.com/google/re2/wiki/Syntax for the supported syntax.
|
||||
This uses golangs 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)"`.
|
||||
|
||||
### match(regEx)
|
||||
This operator returns the substring match details of the given regEx.
|
||||
@ -9,7 +11,7 @@ This operator returns the substring match details of the given regEx.
|
||||
### capture(regEx)
|
||||
Capture returns named RegEx capture groups in a map. Can be more convenient than `match` depending on what you are doing.
|
||||
|
||||
# test(regEx)
|
||||
## test(regEx)
|
||||
Returns true if the string matches the RegEx, false otherwise.
|
||||
|
||||
## sub(regEx, replacement)
|
||||
|
@ -1,7 +1,9 @@
|
||||
# String Operators
|
||||
|
||||
## RegEx
|
||||
This uses golangs native regex functions under the hood - See https://github.com/google/re2/wiki/Syntax for the supported syntax.
|
||||
This uses golangs 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)"`.
|
||||
|
||||
### match(regEx)
|
||||
This operator returns the substring match details of the given regEx.
|
||||
@ -9,7 +11,7 @@ This operator returns the substring match details of the given regEx.
|
||||
### capture(regEx)
|
||||
Capture returns named RegEx capture groups in a map. Can be more convenient than `match` depending on what you are doing.
|
||||
|
||||
# test(regEx)
|
||||
## test(regEx)
|
||||
Returns true if the string matches the RegEx, false otherwise.
|
||||
|
||||
## sub(regEx, replacement)
|
||||
|
Loading…
Reference in New Issue
Block a user