Skip to content

Commit 191a3fa

Browse files
authored
Update split.md
1 parent edb87c6 commit 191a3fa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/handbook/strings/split.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,23 @@ splits a string at the given delimiter
3131
Splits a string at every character
3232

3333
```eve
34-
match
34+
search
3535
(token, index) = split[text: "hello, world", by: ""]
36-
bind
37-
[#div text: token]
38-
[#div text: index]
36+
37+
bind @browser
38+
[#div text: "{{token}} {{index}}"]
3939
```
4040

4141
Split a sentence into words and display them in order
4242

4343
```eve
44-
match
44+
search
4545
(token, index) = split[text: "the quick brown fox", by: " "]
46-
bind
46+
47+
bind @browser
4748
[#div sort: index, text: token]
4849
```
4950

5051
## See Also
5152

52-
[concat](../concat) | [join](../join) | [char-at](../char-at) | [find](../find) | [length](../length) | [replace](../replace)
53+
[concat](../concat) | [join](../join) | [char-at](../char-at) | [find](../find) | [length](../length) | [replace](../replace)

0 commit comments

Comments
 (0)