Bash Script Match Regex Javascript W3schools