Regex to store a word before and after in javascript Regex to store a word before and after in javascript selenium selenium