parse static method
Implementation
static FacebookProfileUrl? parse(String url) {
var matches = RegExp(
r'(?:https?:)?\/\/(?:www\.)?(?:facebook|fb)\.com\/(?<profile>(?![A-z]+\.php)(?!marketplace|gaming|watch|me|messages|help|search|groups)[A-z0-9_\-\.]+)\/?')
.allMatches(url);
var profile = matches.getValue("profile");
if (profile == null) return null;
return FacebookProfileUrl._(profile);
}