This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: error when using split-regex
- From: Per Bothner <per at bothner dot com>
- To: Damien MATTEI <Damien dot Mattei at unice dot fr>, kawa <kawa at sourceware dot org>
- Date: Thu, 9 Mar 2017 09:57:28 -0800
- Subject: Re: error when using split-regex
- Authentication-results: sourceware.org; auth=none
- References: <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/