.cargo/vendor/regex/testdata/leftmost-all.toml
raw| 1 | [[test]] |
| 2 | name = "alt" |
| 3 | regex = 'foo|foobar' |
| 4 | haystack = "foobar" |
| 5 | matches = [[0, 6]] |
| 6 | match-kind = "all" |
| 7 | search-kind = "leftmost" |
| 8 | |
| 9 | [[test]] |
| 10 | name = "multi" |
| 11 | regex = ['foo', 'foobar'] |
| 12 | haystack = "foobar" |
| 13 | matches = [ |
| 14 | { id = 1, span = [0, 6] }, |
| 15 | ] |
| 16 | match-kind = "all" |
| 17 | search-kind = "leftmost" |
| 18 | |
| 19 | [[test]] |
| 20 | name = "dotall" |
| 21 | regex = '(?s:.)' |
| 22 | haystack = "foobar" |
| 23 | matches = [[5, 6]] |
| 24 | match-kind = "all" |
| 25 | search-kind = "leftmost" |