caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolás Ojeda Bär" <nicolas.ojeda.bar@lexifi.com>
To: Markus Elfring <Markus.Elfring@web.de>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Checking the usage of “Str.search_forward”
Date: Thu, 6 Jun 2019 11:34:24 +0000	[thread overview]
Message-ID: <CADK7aFMp39WRKvQGhLxUyZa1n+w5m7zjqUB0AiOBWfou=Nyktw@mail.gmail.com> (raw)
In-Reply-To: <8a8d628c-9e10-f5e7-d47a-f6cfac281206@web.de>

Hi Markus,

Are you sure that String.length xb >= 6 ?

Cheers,
Nicolás

On Thu, Jun 6, 2019 at 10:33 AM Markus Elfring <Markus.Elfring@web.de> wrote:
>
> Hello,
>
> I would like to use OCaml code like “try ignore (Str.search_forward (Str.regexp " when done") xb 6); …”.
> Now I am looking for the explanation of the message “Fatal error:
> exception Invalid_argument("Str.search_forward")”.
>
> Regards,
> Markus

  reply	other threads:[~2019-06-06 11:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06  8:20 Markus Elfring
2019-06-06 11:34 ` Nicolás Ojeda Bär [this message]
2019-06-06 14:07   ` Markus Elfring
2019-06-07  8:04     ` David Allsopp

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='CADK7aFMp39WRKvQGhLxUyZa1n+w5m7zjqUB0AiOBWfou=Nyktw@mail.gmail.com' \
    --to=nicolas.ojeda.bar@lexifi.com \
    --cc=Markus.Elfring@web.de \
    --cc=caml-list@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).