Hello list,

I'm new to Chicken Scheme. I need to check if a string contains some
multibyte characters. In Emacs Lisp, I use:

(string-match "[一二]" "三四")
     => nil

(string-match "[一二]" "孤注一掷")
     => 2

and it works fine, however, the following Chicken code doesn't:

(irregex-search "[一二]" "三四")
     => #<regexp-match (0 submatches)>

I expect it to return #f since "三四" doesn't contain "一" or "二".

Any tips?

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to