1 | I have {int} cuke(s)
|
2 | I have 22 cukes
|
3 | [22]
|
4 | ---
|
5 | I have {int} cuke(s) and some \[]^$.|?*+
|
6 | I have 1 cuke and some \[]^$.|?*+
|
7 | [1]
|
8 | ---
|
9 | /I have (\d+) cukes? in my (\w+) now/
|
10 | I have 22 cukes in my belly now
|
11 | [22,"belly"]
|
12 | ---
|
13 | /I have (-?\d+) cukes? in my (.*) now/
|
14 | I have 1 cuke in my belly now
|
15 | [1,"belly"]
|
16 | ---
|
17 | /^Something( with an optional argument)?$/
|
18 | Something
|
19 | [null]
|