Convert standard regex's from ruby into javascript compatible regex

via @waymondo