public interface RegexIterator extends SequenceIterator
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfGroups()
Get the number of captured groups in the current matching item
|
UnicodeString |
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
|
StringValue |
next()
Get the next item in the sequence.
|
void |
processMatchingSubstring(RegexMatchHandler action)
Process a matching substring, performing specified actions at the start and end of each matching
group
|
close, dischargeStringValue next()
next in interface SequenceIteratorboolean isMatching()
int getNumberOfGroups()
UnicodeString getRegexGroup(int number)
number - the number of the group to be obtainedvoid processMatchingSubstring(RegexMatchHandler action) throws XPathException
XPathExceptionCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.