3
3
<cppOperatorModel >
4
4
<context >
5
5
<description >
6
- RegexMatch operator has three custom output functions:
7
- * RegexSimpleMatch performs a partial match - runs in interpretation mode (like SPL regexMatch function).
6
+ RegexRun operator has five custom output functions:
8
7
* RegexPartialMatch performs a partial match - runs in compilation mode.
9
8
* RegexFullMatch performs a full match - runs in compilation mode.
9
+ * RegexReplace performs a single search/replace - runs in compilation mode.
10
+ * RegexGlobalReplace performs a global search/replace - runs in compilation mode.
11
+ * RegexExtract performs search/extract - runs in compilation mode.
10
12
</description >
11
13
<customOutputFunctions >
12
14
<customOutputFunction >
@@ -48,12 +50,52 @@ RegexMatch operator has three custom output functions:
48
50
<prototype >boolean RegexPartialMatch(blob blb, rstring pattern)</prototype >
49
51
</function >
50
52
<function pseudoFunction =" false" >
51
- <description >Tries to match the string with the pattern.</description >
52
- <prototype >boolean RegexSimpleMatch (rstring str, rstring pattern )</prototype >
53
+ <description >Searches the string with the pattern (defined as the operator parameter) and replaces a first finding with rewrite .</description >
54
+ <prototype >rstring RegexReplace (rstring str, rstring rewrite )</prototype >
53
55
</function >
54
56
<function pseudoFunction =" false" >
55
- <description >Tries to match the blob with the pattern.</description >
56
- <prototype >boolean RegexSimpleMatch(blob blb, rstring pattern)</prototype >
57
+ <description >Searches the string with the pattern (defined as the operator parameter) and replaces a first finding with rewrite.</description >
58
+ <prototype >rstring RegexReplace(blob blb, rstring rewrite)</prototype >
59
+ </function >
60
+ <function pseudoFunction =" false" >
61
+ <description >Searches the string with the pattern and replaces a first finding with rewrite.</description >
62
+ <prototype >rstring RegexReplace(rstring str, rstring pattern, rstring rewrite)</prototype >
63
+ </function >
64
+ <function pseudoFunction =" false" >
65
+ <description >Searches the string with the pattern and replaces a first finding with rewrite.</description >
66
+ <prototype >rstring RegexReplace(blob blb, rstring pattern, rstring rewrite)</prototype >
67
+ </function >
68
+ <function pseudoFunction =" false" >
69
+ <description >Searches the string with the pattern (defined as the operator parameter) and replaces all found with rewrite.</description >
70
+ <prototype >rstring RegexGlobalReplace(rstring str, rstring rewrite)</prototype >
71
+ </function >
72
+ <function pseudoFunction =" false" >
73
+ <description >Searches the string with the pattern (defined as the operator parameter) and replaces all found with rewrite.</description >
74
+ <prototype >rstring RegexGlobalReplace(blob blb, rstring rewrite)</prototype >
75
+ </function >
76
+ <function pseudoFunction =" false" >
77
+ <description >Searches the string with the pattern and replaces all found with rewrite.</description >
78
+ <prototype >rstring RegexGlobalReplace(rstring str, rstring pattern, rstring rewrite)</prototype >
79
+ </function >
80
+ <function pseudoFunction =" false" >
81
+ <description >Searches the string with the pattern and replaces all found with rewrite.</description >
82
+ <prototype >rstring RegexGlobalReplace(blob blb, rstring pattern, rstring rewrite)</prototype >
83
+ </function >
84
+ <function pseudoFunction =" false" >
85
+ <description >Tries to match the string with the pattern (defined as the operator parameter).</description >
86
+ <prototype >rstring RegexExtract(rstring str, rstring rewrite)</prototype >
87
+ </function >
88
+ <function pseudoFunction =" false" >
89
+ <description >Tries to match the string with the pattern (defined as the operator parameter).</description >
90
+ <prototype >rstring RegexExtract(blob blb, rstring rewrite)</prototype >
91
+ </function >
92
+ <function pseudoFunction =" false" >
93
+ <description >Tries to match the string with the pattern (defined as the operator parameter).</description >
94
+ <prototype >rstring RegexExtract(rstring str, rstring pattern, rstring rewrite)</prototype >
95
+ </function >
96
+ <function pseudoFunction =" false" >
97
+ <description >Tries to match the string with the pattern (defined as the operator parameter).</description >
98
+ <prototype >rstring RegexExtract(blob blb, rstring pattern, rstring rewrite)</prototype >
57
99
</function >
58
100
</customOutputFunction >
59
101
</customOutputFunctions >
@@ -103,7 +145,7 @@ RegexMatch operator has three custom output functions:
103
145
</parameters >
104
146
<inputPorts >
105
147
<inputPortSet >
106
- <description >The RegexMatch operator is configurable with a single input port. The input port is non-mutating and its punctuation mode is Oblivious.</description >
148
+ <description >The RegexRun operator is configurable with a single input port. The input port is non-mutating and its punctuation mode is Oblivious.</description >
107
149
<windowingDescription ></windowingDescription >
108
150
<tupleMutationAllowed >false</tupleMutationAllowed >
109
151
<windowingMode >NonWindowed</windowingMode >
@@ -114,7 +156,7 @@ RegexMatch operator has three custom output functions:
114
156
</inputPorts >
115
157
<outputPorts >
116
158
<outputPortSet >
117
- <description >The RegexMatch operator is configurable with one output port. The output port is mutating and its punctuation mode is Preserving.</description >
159
+ <description >The RegexRun operator is configurable with one output port. The output port is mutating and its punctuation mode is Preserving.</description >
118
160
<expressionMode >Expression</expressionMode >
119
161
<autoAssignment >true</autoAssignment >
120
162
<completeAssignment >true</completeAssignment >
0 commit comments