loosePattern property

RegExp loosePattern
final

A permissive pattern that also matches scheme-less hosts such as example.com. Prone to false positives; opt in only if you need it.

Implementation

static final RegExp loosePattern = RegExp(
    r'((https?|ftps?|sftp|file|telnet|ssh|wss?|irc|rtsp|rtmp):\/\/)?(www\.)?[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}(\/[^\s]*)?(\?[a-zA-Z0-9&=%_-]+)?',
    caseSensitive: false);