Regex exclude word javascript. Nearly all regex engines support it: /G[a-b].