Skip to content

Commit e2e4efb

Browse files
authored
Update documentation (#639)
1 parent ef12314 commit e2e4efb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

docs/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ We support the following operations with the`regex` parser (indicated with the `
325325

326326
- `findall`
327327

328-
Here is an example that is using `findall`:
328+
Here is an example using the `findall` mode that returns the list `['1', '2', '3', '4']`:
329329
```yaml
330330
--8<-- "./examples/tutorial/parser_findall.pdl"
331331
```

examples/tutorial/parser_findall.pdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
text: "1 -- 2 -- 3 -- 4"
1+
data: "1 -- 2 -- 3 -- 4"
22
parser:
33
regex: '[0-9]+'
44
mode: findall
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def add_numbers(a, b):
2+
return a + b

tests/results/examples/tutorial/parser_regex.3.result

-1
This file was deleted.

0 commit comments

Comments
 (0)