Skip to content

Instantly share code, notes, and snippets.

@mit-mit
Created September 20, 2022 15:52
Show Gist options
  • Save mit-mit/212d4ece3f15ffea212d87d34f841338 to your computer and use it in GitHub Desktop.
Save mit-mit/212d4ece3f15ffea212d87d34f841338 to your computer and use it in GitHub Desktop.
tangled-durian-7940
void main() {
final urlString = "http://example.com\\.google.com";
final uri = Uri.parse(urlString);
print('Host: ${uri.host}');
print('Ends with google.com: ${uri.host.endsWith('.google.com')}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment