caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* integer regular expressions
@ 2009-03-30 17:21 Florent.Ouchet
  2009-03-31  2:10 ` [Caml-list] " Martin Jambon
  0 siblings, 1 reply; 3+ messages in thread
From: Florent.Ouchet @ 2009-03-30 17:21 UTC (permalink / raw)
  To: caml-list

Hello,

I'm looking for a way to match integer numbers (immediate values),  
whose types may be either int, int32, int64 or big_int. A conversion  
to string in order to use string (perl compatible) regular expressions  
is likely not the solution I'm looking for because it will not allow  
integer specific matches.

For instance (not normative), the regular expression syntax and  
semantics would allow complex matches such as "0%30" === "this integer  
matches if and only if its modulo to 30 is equal to 0". As in string  
regular expressions, operator | will implement a logical or...

I googled a little but all the results are always related to string  
regular expressions :( any pointers? any existing Caml code?

Thanks,

Florent Ouchet


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

end of thread, other threads:[~2009-03-31  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 17:21 integer regular expressions Florent.Ouchet
2009-03-31  2:10 ` [Caml-list] " Martin Jambon
2009-03-31  9:11   ` Florent Ouchet

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).