getBloodGroup function

String? getBloodGroup(
  1. String text
)

Implementation

String? getBloodGroup(String text) {
  RegExp bloodGroupRegex = RegExp(r"Blood Group : (.+) @@");

  String? bloodGroup = bloodGroupRegex.firstMatch(text)?.group(1);

  print("Blood Group: $bloodGroup");
  return bloodGroup;
}