When using Regex.IsMatch (C#, .Net 4.5) on a specific string, the CPU reaches 100%.
Regex.IsMatch
String:
https://www.facebook.com/CashKingPirates/ph
Your regex suffers for catastrophic backtracking.You can simply use
catastrophic backtracking
^http(s)?://([\w.-])+(/[\w ./?%&=-]+)*$
See demo.
https://regex101.com/r/cK4iV0/15