in reply to Re: regex of a url
in thread regex of a url

Note that /^$RE{net}{domain}\z/ will match a string consisting of a single space (it does so because RFC 1035 says that's a valid domain). Use
/^(?! )$RE{net}{domain}\z/ # Or /^$RE{net}{domain}{-nospace}\z/
if you don't want to match single space strings.

Abigail