Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Str.bounded_split behaviour...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Wohlwend <mwohlwend@w...>
Subject: [Caml-list] Str.bounded_split behaviour...
Hi,

is this correct:

bounded_split (regexp "[ \t]+") "  one two   " 1 ;;

gives:
- : string list = ["one two   "]

but I thought that any occurrence of the delimiter at the
    beginning and at the end of the string is ignored?


  Michael

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners