- All Implemented Interfaces:
- org.wso2.siddhi.core.executor.ExpressionExecutor, org.wso2.siddhi.core.util.extension.holder.EternalReferencedHolder, org.wso2.siddhi.core.util.snapshot.Snapshotable
public class GroupFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
group(regex, inputSequence, groupId)
This method returns the input sub-sequence captured by the given group during the previous match operation.
regex - regular expression. eg: "\d\d(.*)WSO2"
inputSequence - input sequence to be matched with the regular expression eg: "21 products are produced by WSO2 currently"
groupId - the given group id of the regex expression eg: 0, 1, 2, etc.
Accept Type(s) for group(regex, inputSequence, groupId);
regex : STRING
inputSequence : STRING
groupId : INT
Return Type(s): STRING