Wed Jun 3 08:50:17 CEST 2009
"Richard O'Keefe" <> writes:
> On 2 Jun 2009, at 7:59 pm, mats cronqvist wrote:
>> Geoffrey Biggs <> writes:
>>> Python provides a method of specifying strings they call "raw
>>> strings," which I find quite interesting. Basically, you prefix your
>>> string with r or R, and any backslashes are treated as literal
>>> characters rather than escape sequences. For example:
>>> More info in the docs:
>>> I'm not sure how well it would work in Erlang, but it's certainly
>>> useful in Python for avoiding the headache-inducing backslash
>>> acrobatics necessary when writing the occasional complex regular
> This is simply the wrong way to deal with complex regular expressions.
this discussion is about how to represent strings with many escapes,
not about regexps per se.
More information about the erlang-questions