File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,22 @@ API 设计: https://github.com/calcit-lang/calcit_runner.rs/discussions/116 .
9
9
APIs:
10
10
11
11
``` cirru
12
- calcit.std. regex/re-matches |2 |\d
12
+ regex.core /re-matches |2 |\d
13
13
; "returns bool"
14
14
15
15
; "find first matched item"
16
- calcit.std. regex/re-find |a4 |\d
17
- calcit.std. regex/re-find-index |a1 |\d
16
+ regex.core /re-find |a4 |\d
17
+ regex.core /re-find-index |a1 |\d
18
18
19
- calcit.std. regex/re-find-all |123 |\d+
19
+ regex.core /re-find-all |123 |\d+
20
20
21
21
22
- assert= |1abXcX3 $ re-replace-all |1ab22c333 |\d{2} "\"X"
22
+ regex.core/re-replace-all |1ab22c333 |\d{2} "\"X"
23
+ ; |1abXcX3
23
24
24
- assert= ([] "\"1ab" "\"c" "\"3") $ re-split |1ab22c333 |\d{2}
25
+
26
+ regex.core/re-split |1ab22c333 |\d{2}
27
+ ; [] "\"1ab" "\"c" "\"3"
25
28
```
26
29
27
30
Install to ` ~/.config/calcit/modules/ ` , compile and provide ` *.{dylib,so} ` file with ` ./build.sh ` .
You can’t perform that action at this time.
0 commit comments