Check out example codes for "dart regex". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com