[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] How to search UTF-8 multibyte characters with regex?
From: |
Chunyang Xu |
Subject: |
[Chicken-users] How to search UTF-8 multibyte characters with regex? |
Date: |
Thu, 09 Nov 2017 12:40:31 +0800 |
User-agent: |
mu4e 0.9.18; emacs 27.0.50 |
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] How to search UTF-8 multibyte characters with regex?,
Chunyang Xu <=