^((?:http|https)://)?((?![/?]{2,})[a-zA-Z0-9\-._%&=/?])+$

Created with RegexBuddy看不懂?猛击翻译