urlInTextRegExp property

  1. @internal
RegExp get urlInTextRegExp

A regular expression to detect a URL anywhere in the text, even if it's in the middle of other content. Used to resolve bug https://github.com/singerdmx/flutter-quill/issues/1432

Implementation

@internal
static RegExp get urlInTextRegExp => RegExp(
      r'https?:\/\/[\w\-]+(\.[\w\-]+)*(:\d+)?([\/\?#][^\s]*)?',
      caseSensitive: false,
    );