- 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 FindFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
find(regex, inputSequence)
find(regex, inputSequence, startingIndex)
These methods attempts to find the next sub-sequence of the 'inputSequence' that matches the 'regex' pattern.
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"
startingIndex - starting index of the input sequence to start matching the given regex pattern eg: 1, 2
Accept Type(s) for find(regex, inputSequence);
regex : STRING
inputSequence : STRING
Accept Type(s) for find(regex, inputSequence, startingIndex);
regex : STRING
inputSequence : STRING
startingIndex : INT
Return Type(s): BOOLEAN