Update readme formatting

This commit is contained in:
Flaviu Tamas 2015-01-16 19:56:05 -05:00
commit 085903cd10

View file

@ -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