Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Super-expressive – Write regex in natural language. Parent comment
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
In languages that do not support the x modifier, I just break up my regex into substrings. Something like: