caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: zaid khalid <zaidbenaz@yahoo.com>
To: caml-list@yquem.inria.fr
Subject: HELP : with regular expression
Date: Mon, 6 Dec 2010 15:29:37 -0800 (PST)	[thread overview]
Message-ID: <317197.91134.qm@web65412.mail.ac4.yahoo.com> (raw)

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

Hi folks 

Thank you for all your replies. I think I am still struggling to find a solution to my issue using "Str.regexp", and using Pcre-ocaml needs some time to be familiar with as there is no enough examples and discussion on it.

Ill put my issue again as if someone can help me to find a solution to it with the "Str" .

I want to define regular expression and after that I want to check if particular string is a prefix of the given regular expression.

Example: a* | (aba)* so when you test "abaaba" the result will be true (complete match) and when we check "abaa" the result is true as well but when we check "abb" the result is false.

I look forward to your suggestions.

Cheers,
Zaid



      

[-- Attachment #2: Type: text/html, Size: 864 bytes --]

             reply	other threads:[~2010-12-06 23:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06 23:29 zaid khalid [this message]
2010-12-07 15:55 ` [Caml-list] " Ashish Agarwal
  -- strict thread matches above, loose matches on Subject: below --
2010-12-06 11:43 help " zaid khalid
2010-12-06 12:03 ` [Caml-list] " David Allsopp
2010-12-06 13:11   ` Sylvain Le Gall
2010-12-06 17:31 ` Dawid Toton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=317197.91134.qm@web65412.mail.ac4.yahoo.com \
    --to=zaidbenaz@yahoo.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).