[erlang-bugs] re module doc change

Michael Mullis michael@REDACTED
Tue Sep 23 20:01:06 CEST 2008


Hi.
I hope this is the correct venue for documentation bugs so please forgive
the intrusion if not.

In R12B-4, the re module doc needs to state clearly up front that regular
expressions normally containing a backslash (\) such as in the PCRE
examples, need to escape the backslash (\\) when used in Erlang programs.
For example,
  re:run("foo", "\\bfoo\\b")
instead of
  re:run("foo", "\bfoo\b")

There's a small blurb just before "PERL LIKE REGULAR EXPRESSIONS SYNTAX"
section but it's part of the "replace" function doc and not clear enough to
indicate that ALL backslashes intended to be part of a regexp need to be
escaped in order pass through to the regular expression engine.

thanks,
michael mullis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080923/93c207ff/attachment.htm>


More information about the erlang-bugs mailing list