public interface RegexIterator extends SequenceIterator<StringValue>
Modifier and Type | Interface and Description |
---|---|
static interface |
RegexIterator.MatchHandler
Interface defining a call-back action for processing captured groups
|
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfGroups()
Get the number of captured groups in the current matching item
|
java.lang.String |
getRegexGroup(int number)
Get a substring that matches a parenthesised group within the regular expression
|
boolean |
isMatching()
Determine whether the current item in the sequence is a matching item or a non-matching item
|
void |
processMatchingSubstring(RegexIterator.MatchHandler action)
Process a matching substring, performing specified actions at the start and end of each matching
group
|
close, forEachOrFail, getProperties, materialize, next
boolean isMatching()
int getNumberOfGroups()
java.lang.String getRegexGroup(int number)
number
- the number of the group to be obtainedvoid processMatchingSubstring(RegexIterator.MatchHandler action) throws XPathException
XPathException
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.