[erlang-questions] dots in regexps
Tue Mar 30 15:45:02 CEST 2010
On Tue, 2010-03-30 at 08:16 -0500, David Mercer wrote:
> Parts of the string that do not match the regexp are unaffected by
> re:replace, so are retained in the result.
Thanks for explaining, it makes sense now.
Silly me, since I know fully well that a new list is created, it seemed
much more logical to me at the time that the \1 would only extract the
three chars following "foo" and result in "foobar".
More information about the erlang-questions