Adoption of perl/javascript-style regexp syntax

mats cronqvist masse@REDACTED
Tue Jun 2 09:59:53 CEST 2009

Geoffrey Biggs <geoffrey.biggs@REDACTED> 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:
>>>> '\b'
> '\x08'
>>>> r'\b'
> '\\b'
> 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
> expression.



More information about the erlang-questions mailing list