We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 495d090 commit 95c2e2aCopy full SHA for 95c2e2a
1 file changed
pixie/regex.pxi
@@ -68,3 +68,15 @@
68
:signatures [[rexegp-str opts]]}
69
[regexp-str opts]
70
(cre2_new regexp-str (count regexp-str) (cre2-opts opts)))
71
+
72
+(defn match
73
+ [pattern text]
74
+ (cre2_match
75
+ pattern
76
+ text
77
+ (count text)
78
+ 0
79
80
+ 1 ;; anchor 1 - no, 2 - start, 3 - both
81
+ (cre2_string_t)
82
+ (+ 1 (cre2_num_capturing_groups pattern))))
0 commit comments