in reply to Variable in regex...

See also How do I escape metacharacters in a user-defined string?.