… | |
… | |
44 | qr{ \[ ([^{}[:space:]]+) \] }x, |
44 | qr{ \[ ([^{}[:space:]]+) \] }x, |
45 | qr{ \( ([^()[:space:]]+) \) }x, |
45 | qr{ \( ([^()[:space:]]+) \) }x, |
46 | |
46 | |
47 | # urls, just a heuristic |
47 | # urls, just a heuristic |
48 | qr{( |
48 | qr{( |
49 | (?:https?://|ftp://|news://|mailto:|file://)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~]+ |
49 | (?:https?://|ftp://|news://|mailto:|file://|\bwww\.)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+ |
50 | [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~] # exclude some trailing characters (heuristic) |
50 | [ab-zA-Z0-9\-\@;\/?:&=%\$_+*()~] # exclude some trailing characters (heuristic) |
51 | )}x, |
51 | )}x, |
52 | |
52 | |
53 | # shell-like argument quoting, basically always matches |
53 | # shell-like argument quoting, basically always matches |
54 | qr{\G [\ \t|&;<>()]* ( |
54 | qr{\G [\ \t|&;<>()]* ( |
55 | (?: |
55 | (?: |