RegExpCursor
class RegExpCursor(text: Text, query: String, options: Set<RegexOption> = emptySet(), from: DocPos = DocPos.ZERO, to: DocPos = text.endPos) : Iterator<SearchMatch>
A cursor that iterates over regex matches in a Text document.
Parameters
text
The document text to search through.
query
The regex pattern string.
options
Regex options (e.g. RegexOption.IGNORE_CASE).
from
Start position of the search range.
to
End position of the search range.