# Capture entire matched URL ( # Optional: only allow some network protocols # URL protocol and a colon followed by 2 slashes (?: (?: http|https|ftp ):\\/\\/ )? # Check if it is the beginning of a word (?<=\\b) # The URL must not start with the character '@' (?