|
2011 | 2011 | "input": null, |
2012 | 2012 | "query": ["regex", "Joe", "^[A-z]+$"], |
2013 | 2013 | "output": true |
| 2014 | + }, |
| 2015 | + { |
| 2016 | + "input": null, |
| 2017 | + "query": ["regex", "2025", "^[A-z]+$"], |
| 2018 | + "output": false |
2014 | 2019 | } |
2015 | 2020 | ] |
2016 | 2021 | }, |
|
2023 | 2028 | "query": ["match", "Hello World!", "[A-z]+"], |
2024 | 2029 | "output": { "matches": ["Hello"] } |
2025 | 2030 | }, |
| 2031 | + { |
| 2032 | + "input": null, |
| 2033 | + "query": ["match", "2025-11-05", "[A-z]+"], |
| 2034 | + "output": null |
| 2035 | + }, |
2026 | 2036 | { |
2027 | 2037 | "input": null, |
2028 | 2038 | "query": ["match", "Hello World!", "([A-Z])([a-z]+)"], |
|
2045 | 2055 | "matches": ["2025-07-18", "2025", "07", "18"], |
2046 | 2056 | "groups": { "year": "2025", "month": "07", "date": "18" } |
2047 | 2057 | } |
| 2058 | + }, |
| 2059 | + { |
| 2060 | + "input": null, |
| 2061 | + "query": ["match", "Hello World!", "(?<year>\\d{4})-(?<month>\\d{2})-(?<date>\\d{2})"], |
| 2062 | + "output": null |
2048 | 2063 | } |
2049 | 2064 | ] |
2050 | 2065 | }, |
|
2058 | 2073 | "query": ["matchAll", "Hello World!", "[A-z]+"], |
2059 | 2074 | "output": [{ "matches": ["Hello"] }, { "matches": ["World"] }] |
2060 | 2075 | }, |
| 2076 | + { |
| 2077 | + "input": null, |
| 2078 | + "query": ["matchAll", "2025-05-11", "[A-z]+"], |
| 2079 | + "output": [] |
| 2080 | + }, |
2061 | 2081 | { |
2062 | 2082 | "input": null, |
2063 | 2083 | "query": ["matchAll", "Hello World!", "([A-Z])([a-z]+)"], |
|
2086 | 2106 | "groups": { "year": "2025", "month": "08", "date": "01" } |
2087 | 2107 | } |
2088 | 2108 | ] |
| 2109 | + }, |
| 2110 | + { |
| 2111 | + "input": null, |
| 2112 | + "query": ["matchAll", "Hello World!", "(?<year>\\d{4})-(?<month>\\d{2})-(?<date>\\d{2})"], |
| 2113 | + "output": [] |
2089 | 2114 | } |
2090 | 2115 | ] |
2091 | 2116 | }, |
|
0 commit comments