update regex for word