import org.exist.xquery.value.ValueSequence;
public class RegexpFilter extends BasicFunction {
protected static final FunctionParameterSequenceType FLAGS_PARAM = new FunctionParameterSequenceType("flags", Type.STRING, Cardinality.EXACTLY_ONE, "The flags");
protected static final FunctionParameterSequenceType REGEX_PARAM = new FunctionParameterSequenceType("regularexpression", Type.STRING, Cardinality.EXACTLY_ONE, "The regular expression to perform against the text");
protected static final FunctionParameterSequenceType TEXT_PARAM = new FunctionParameterSequenceType("text", Type.STRING, Cardinality.EXACTLY_ONE, "The text to filter");
<BUG>public final static FunctionSignature signatures[] = {new FunctionSignature(
new QName("filter", TextModule.NAMESPACE_URI, TextModule.PREFIX),</BUG>
"Filter substrings that match the regular expression in the text.",
new SequenceType[]{
TEXT_PARAM,

import org.exist.xquery.value.ValueSequence;
public class RegexpFilter extends BasicFunction {
protected static final FunctionParameterSequenceType FLAGS_PARAM = new FunctionParameterSequenceType("flags", Type.STRING, Cardinality.EXACTLY_ONE, "The flags");
protected static final FunctionParameterSequenceType REGEX_PARAM = new FunctionParameterSequenceType("regularexpression", Type.STRING, Cardinality.EXACTLY_ONE, "The regular expression to perform against the text");
protected static final FunctionParameterSequenceType TEXT_PARAM = new FunctionParameterSequenceType("text", Type.STRING, Cardinality.EXACTLY_ONE, "The text to filter");
public final static FunctionSignature signatures[] = {
new FunctionSignature(
new QName("filter", TextModule.NAMESPACE_URI, TextModule.PREFIX),
"Filter substrings that match the regular expression in the text.",
new SequenceType[]{
TEXT_PARAM,
