Problem

Need a RFC compliant regexp to validate a URL.

Solution

Turns out it ain’t easy: