Skip to content

Commit 4097cf1

Browse files
committed
2 parents 6f40f0c + 662e7be commit 4097cf1

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,63 @@ replace "Sunflower" "flower" "shine"
150150
Split string by separator and return array of all parts.
151151

152152
```
153-
split "Apple, Banana, Strawberry" ","
153+
split "Apple, Banana, Strawberry" ", "
154+
```
155+
156+
#### `join`
157+
158+
Joins strings with separator.
159+
160+
```
161+
join "Apple" "Banana" "Strawberry" ", "
162+
```
163+
164+
#### `regexMatch`
165+
166+
Outputs wether string matches regex.
167+
168+
```
169+
regexMatch "[0-9]" "0123456789"
170+
```
171+
172+
#### `regexFind`
173+
174+
Returns a list of all regex matches.
175+
176+
```
177+
index ( regexFind "[1-36-9]" "01234 56789" ) 0
178+
```
179+
180+
#### `regexFindGroups`
181+
182+
Returns a nested list (`[][]string`) of all regex submatches (groups `(.*)`).
183+
184+
```
185+
index ( index ( regexFindGroups "(_*)(\S+)(_*)" "__xyz__" 0 ) 0 )
186+
```
187+
188+
#### `regexReplace`
189+
190+
Replaces substring via regex in string.
191+
192+
```
193+
regexReplace "string" "replace_regex" "replace_with"
154194
```
155195

156196
#### `delete`
157197

158198
Deletes an entry from a dictionary or array.
159199

160200
```
201+
161202
delete map "key"
203+
162204
```
163205

164206
```
207+
165208
delete array 0
209+
166210
```
167211

168212
## Contributing
@@ -182,3 +226,11 @@ This Project is licensed under the [MIT License](./LICENSE).
182226
## Legal
183227

184228
Logo designed by @CodeShellDev — All Rights Reserved. Go gopher mascot originally created by [Renée French](https://instagram.com/reneefrench/), used under the [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.
229+
230+
```
231+
232+
```
233+
234+
```
235+
236+
```

0 commit comments

Comments
 (0)