caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Strange PCRE bug
@ 2004-09-16 15:44 Richard Jones
  2004-09-17  0:21 ` Markus Mottl
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Jones @ 2004-09-16 15:44 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

$ ocaml -I +pcre
        Objective Caml version 3.08.1

# #load "pcre.cma";;
# let rex = Pcre.regexp "(:?([a-z]+)\\s+)*";;
val rex : Pcre.regexp = <abstr>
# Pcre.extract_all ~rex "a b c d ee ff ";;

  (* Hangs, rapidly consuming memory.  Killed with ^C ... *)

Interrupted.
# Gc.full_major ();;
- : unit = ()

The Gc.full_major () doesn't recover any memory.

On a more general point, how do I access all the strings captured by
the inner brackets in a pattern like (:? (..)  )*  ?

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MOD_CAML lets you run type-safe Objective CAML programs inside the Apache
webserver. http://www.merjis.com/developers/mod_caml/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-17  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 15:44 [Caml-list] Strange PCRE bug Richard Jones
2004-09-17  0:21 ` Markus Mottl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).