> Sadly, JavaScript does not support it. (Big mistake.)
In languages that do not support the x modifier, I just break up my regex into substrings. Something like:
auto regex = "( \w+ )" // Capture the name of the list
+ "\s* = \s*" // spaces = spaces
+ ...
+ "\)"; // Closing paren