public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Damien MATTEI <Damien.Mattei@unice.fr>, kawa <kawa@sourceware.org>
Subject: Re: error when using split-regex
Date: Thu, 09 Mar 2017 17:57:00 -0000	[thread overview]
Message-ID: <2a95ee24-0ef0-1325-26ef-4427a167fa87@bothner.com> (raw)
In-Reply-To: <201703091131.24188.Damien.Mattei@unice.fr>

On 03/09/2017 02:31 AM, Damien MATTEI wrote:
> Hi,
>
> i have got an error in code when using regex-split,
> here is the code tested here at REPL in kawa 2.1:
>
> (require 'regex)
>
> (define wds-url "http://ad.usno.navy.mil/wds/Webtextfiles/wdsnewref.txt")

That web-site is currently not available.

> (define wds-data-str &<{&[wds-url]})  ;; could take a few seconds to GET file
> (define wds-data-str-split (regex-split wds-data-str (string #\return)))
>
> result in this error at some point of splitting:
>
>                   ^
>         at java.util.regex.Pattern.error(Pattern.java:1955)

What is the exception thrown?

-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

  reply	other threads:[~2017-03-09 17:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 10:31 Damien MATTEI
2017-03-09 17:57 ` Per Bothner [this message]
2017-03-09 19:43 ` Per Bothner
2017-03-09 19:46   ` Per Bothner
2017-03-10  9:44     ` Damien MATTEI

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=2a95ee24-0ef0-1325-26ef-4427a167fa87@bothner.com \
    --to=per@bothner.com \
    --cc=Damien.Mattei@unice.fr \
    --cc=kawa@sourceware.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).