Use [:alnum:] character class, NFCI. - plumb - Open certain URL patterns with an ad-hoc opener (plumber) (HTM) hg clone https://bitbucket.org/iamleot/plumb (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- (DIR) changeset 9a636893fe1fa6a91cf627a9a116e123c5ea2a79 (DIR) parent e688c5006a3bf594dfee03672c3d5c9f336c170c (HTM) Author: Leonardo Taccari <iamleot@gmail.com> Date: Sat, 24 Mar 2018 17:03:00 Use [:alnum:] character class, NFCI. Diffstat: dplumb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- diff -r e688c5006a3b -r 9a636893fe1f dplumb --- a/dplumb Sat Mar 24 16:45:07 2018 +0100 +++ b/dplumb Sat Mar 24 17:03:00 2018 +0100 @@ -39,9 +39,9 @@ ' /:\/\// { # Get rid of possible delimiters (<...>, (...), [...]) - if (match($0, /\<[0-9A-Za-z]+:\/\/[^>]+\>/) || - match($0, /\([0-9A-Za-z]+:\/\/[^)]+\)/) || - match($0, /\[[0-9A-Za-z]+:\/\/[^]]+\]/)) { + if (match($0, /\<[[:alnum:]]+:\/\/[^>]+\>/) || + match($0, /\([[:alnum:]]+:\/\/[^)]+\)/) || + match($0, /\[[[:alnum:]]+:\/\/[^]]+\]/)) { print substr($0, RSTART + 1, RLENGTH - 2) } else { print $0