Returns a immutable list of all successive Bindings resulting from matching the regular expression against the string. If the regular expression cannot be matched to the string and empty list will be returned.
By successive we mean that there is no overlap between bindings. Each find starts at the character after the previous searches end.
:-) var regex = //.*?\./;
:-) regex.findSuccessiveMatches( "hello. there." );
There is 1 result
[org.millscript.millscript.datatypes.Binding, org.millscript.millscript.datatypes.Binding]
Following the precedent set in JSpice the returned list is a lazy-list. i.e. the list is built as you request values from it. If you try to perform an operation that depends on the entire list, like calculate its length or try to display it, then all its values will be filled calculated. e.g. in the following example only the first binding is calculated:
:-) var regex = //.*?\./;
:-) var list = regex.findSuccessiveMatches( "hello. there." );
There are 0 results
:-) list[1];
There is 1 result
org.millscript.millscript.datatypes.Binding@...