String Match Regex Javascript Url Constructor In C