I'm trying to grab just the id number from a Facebook picture URL using the replaceall regex method in Dart. What should I be using instead of $2 in the following code? The id number I need is between the "asid=" and "&height".
void main() {
String faceavatar = 'https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=10153806530149154&height=50&width=50&ext=1596623207&hash=AeSi1yDvk8TCqZql';
String currentavatar = faceavatar.replaceAll(RegExp('(.*asid=)(\d*)height.*'), $2;
print(currentavatar);
}
