Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Ocaml 3.07+2: "Illegal backslash escape in string"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: oliver@f...
Subject: [Caml-list] Ocaml 3.07+2: "Illegal backslash escape in string"

after recompiling code that has run under Ocaml 3.04 (??)
without warnings, using Str-module, I now got those messages,
as you can see in the Subject-Line.

That's, when I use something like

   Str.regexp = "a\|b"

instead of

   Str.regexp = "a\\|b"

Why should I use a double-backslashed sequence?
When looking into the manual, the first way is

Will this be fixed, or will this double-backslashed sequence
the new way how to use Str-regexp-Definitions?!


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: