in reply to Non White space function

m{http:// (S+) }

You put whitespace around the capturing group (perhaps you meant to use the /x modifier?) and you forgot the backslash on the \S.

Perhaps you want to use Regexp::Common::URI::http or URI instead of making your own regex.

Replies are listed 'Best First'.
Re^2: Non White space function
by ikegami (Patriarch) on Jul 17, 2020 at 21:29 UTC

    URI doesn't validate.