Update readme formatting
This commit is contained in:
parent
3fd5140554
commit
085903cd10
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -87,20 +87,20 @@ Tries to match the pattern, starting at start. This means that
|
||||||
#### `find(string, Regex, start = 0, endpos = -1): RegexMatch`
|
#### `find(string, Regex, start = 0, endpos = -1): RegexMatch`
|
||||||
|
|
||||||
Finds the given pattern in the string. Bounds work the same as for
|
Finds the given pattern in the string. Bounds work the same as for
|
||||||
[`match()`][proc-match], but instead of being anchored to the start of the string,
|
[`match(...)`][proc-match], but instead of being anchored to the start of the
|
||||||
it can match at any point between `start` and `endpos`.
|
string, it can match at any point between `start` and `endpos`.
|
||||||
|
|
||||||
[proc-find]: #findstring-regex-start--0-endpos---1-regexmatch
|
[proc-find]: #findstring-regex-start--0-endpos---1-regexmatch
|
||||||
|
|
||||||
#### `findIter(string, Regex, start = 0, endpos = -1): RegexMatch`
|
#### `findIter(string, Regex, start = 0, endpos = -1): RegexMatch`
|
||||||
|
|
||||||
Works the same as [find][proc-find], but finds every non-overlapping match.
|
Works the same as [`find(...)`][proc-find], but finds every non-overlapping
|
||||||
`"2222".find(re"22")` is `"22", "22"`, not `"22", "22", "22"`.
|
match. `"2222".find(re"22")` is `"22", "22"`, not `"22", "22", "22"`.
|
||||||
|
|
||||||
Arguments are the same as [`match()`][proc-match]
|
Arguments are the same as [`match(...)`][proc-match]
|
||||||
|
|
||||||
Variants:
|
Variants:
|
||||||
- `findAll` returns a `seq[RegexMatch]`
|
- `findAll(...)` returns a `seq[RegexMatch]`
|
||||||
- `findAllStr` returns a `seq[string]`
|
- `findAllStr(...)` returns a `seq[string]`
|
||||||
|
|
||||||
[iter-find]: #finditerstring-regex-start--0-endpos---1-regexmatch
|
[iter-find]: #finditerstring-regex-start--0-endpos---1-regexmatch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue