Link Search Menu Expand Document

RegexPattern.Matcher Method

Explanation Creates a RegexMatcher object that matches the regular expression pattern with the input string.
Call format var rm = rp.Matcher( input )
Return value RegexMatcher object
Arguments String input Matching input string
From Ver.5.0.1, it is treated as UString type in Unicode mode.
Exception None
Example of use
    var p = RegexPattern.Compile("Biz/([a-zA-Z]+)");
    var m = p.Matcher("Biz/Browser");
    if (m.Matches()) {
        print(m.Group(1), "\n");
    }
    
Related item RegexMatcher class