Every comment here at time of writing is from people thinking that this is a way of searching the web using regular expressions. It is not. It is a way of taking a regular expression and an input and then applying that regular expression to that input. In this particular example it takes the regular expression: /(?x: (\w+) \s (\w+) )/ And applies it to: "hacker news" And then spits out the result: "hacker | news" Rep…
Thank you. Can you explain what "?x:" does? Searching for regular expressions syntax (another thing this doesn't do) is quite tricky.
>"x modifier: extended. Spaces and text after a # in the pattern are ignored" //
The other explainers I had to hand failed and/or called it an error.