Remove extra space
Move shared parts of URL matches to single place
Fix regexps for URLs

All components should have at least one character, replaced * with +