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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ceri Storey <cez@c...>
Subject: [Caml-list] Pcre Confusion.
Hi. I don't understand how pcre_full split is supposed to return Group
results:

# let rex = regexp "([A-Z][a-z]*)|([0-9]+)";;
val rex : Pcre.regexp = <abstr>
# Pcre.full_split ~rex:rex "Foo bar 42";;
- : Pcre.split_result list =
[Delim "Foo"; Group (1, "Foo"); NoGroup; Text " bar "; Delim "42"]

I don't see why there's no Group for the last Delim. If someone could
enlighten me, I'd be most grateful :)
-- 
Ceri Storey <cez@compsoc.man.ac.uk>
-------------------
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