Variables in regexp with JavaScript client

WHAT!?!

Executing a regular expression is like traversing a graph