Class ITER_regex

  • All Implemented Interfaces:
    IteratorFunction

    public class ITER_regex
    extends IteratorFunctionBase
    Iterator function iter:regex iterates over the input subsequences captured by the ith groups of every regex matches.

    See Live example

    • Param 1 (string) is the input string;
    • Param 2 (string) is a regular expression;
    • Param 3..N (integers) are the numbers of the groups to capture.
    Author:
    Noorani Bakerally <noorani.bakerally at emse.fr>, Maxime Lefrançois