Bash Script Match Regex Javascript Url Constructor And Methods