I wonder how I would specify an RE consisting of only a literal " in the shortest way; so far I've got:
var a = re"""""""
var b = re(r""""""")
a "solution" which requires seven "s...
I think (unless there's another syntax), it would be nice to be able to specify any character in place of the " as the string delimiter, like e.g.
var a = re/"/
var b = re(r+"+)
You can always escape it within the regex (as long as you're not using a 'raw' string):
var a_literal_quote = re("\"")