We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extractRegexpValues
1 parent 36d64d6 commit a636c7fCopy full SHA for a636c7f
Rule.js
@@ -135,8 +135,10 @@ Rule.addAccumulator = function (methodName, methodBuilder) {
135
};
136
137
/**
138
- * This accumulator will store the values extracted by the regexp of the Rule object,
+ * This accumulator will store the group values extracted by the regexp of the Rule object,
139
* on the current matching PDF item, into an array.
140
+ *
141
+ * E.g. with regex: /hello ([a-z]+)/, the text "hello world" will yield "world".
142
**/
143
Rule.addAccumulator("extractRegexpValues", function () {
144
var matches = this.regexp.exec(this.currentItem.text);
0 commit comments