I'd like to extraxt string "test", which is the letters before "@",by using RegExp like following, but actually could get "test@" including "@".
How can I get only "test" without "@" ?
final getPass = "test@example.com";
final regEx = RegExp(r'(.+?)@');
print(regEx.firstMatch(getPass)?.group(0));