Ariel Rios <ar...@gnu.org> writes:

> Hello y'all,
>
> I am having problems using string-match. I have created a small script
> that calls string-match and I get:
>
> /home/ariel/console/mce/tests/./panda.scm:4:9: In procedure
> module-lookup: Unbound variable: string-match

As it says in the "Regular Expressions" section of the manual:

  "Before using the described functions, you should load this
   module by executing `(use-modules (ice-9 regex))'."

> If I start guile and then use string-match there is no problem:
> scheme@(guile-user)> (string-match "a" "a")
> $1 = #("a" (0 . 1))

It seems that the REPL starts with (ice-9 regex) loaded by default.

    Regards,
      Mark

Reply via email to