RegExp exp = new RegExp(r"(w+)"); String str = "Parse my string"; Iterable<RegExpMatch> matches = exp.allMatches(str);