getMatches function

Iterable<Match> getMatches(
  1. String inputString,
  2. String name
)

Implementation

Iterable<Match> getMatches(String inputString, String name) {
  RegExp regex = RegExp(name +
      r"\(((\d[\d/*+%-.\s]*)|(\'[^\']*\')) *, *((\d[\d/*+%-.\s]*)|(\'[^\']*\'))\)");
  return regex.allMatches(inputString);
}