FB2Author constructor
FB2Author(
- String author
Implementation
FB2Author(String author) {
id = RegExp(r'id="(.+?)"').firstMatch(author)?.group(1) ?? '';
firstName =
RegExp(r'<first-name>(.+?)<\/first-name>').firstMatch(author)?.group(1);
middleName = RegExp(r'<middle-name>(.+?)<\/middle-name>')
.firstMatch(author)
?.group(1) ??
'';
lastName =
RegExp(r'<last-name>(.+?)<\/last-name>').firstMatch(author)?.group(1) ??
'';
nickname =
RegExp(r'<nickname>(.+?)<\/nickname>').firstMatch(author)?.group(1) ??
'';
email = RegExp(r'<email>(.+?)<\/email>').firstMatch(author)?.group(1) ?? '';
}