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]
|
20 | ---
|
21 | Привет, {word}!
|
22 | Привет, Мир!
|
23 | ["Мир"]
|
24 | ---
|
25 | /I have (.*) cukes? in my (.*) now/
|
26 | I have 22 cukes in my belly now
|
27 | ["22","belly"]
|
28 | ---
|
29 | I have {} cuke(s) in my {} now
|
30 | I have 22 cukes in my belly now
|
31 | ["22","belly"]
|