[racket] pregexp to detect Japanese characters
I'm writing a function to detect Japanese characters in a
string. I found this page:
[1]http://www.localizingjapan.com/blog/2012/01/20/regular-expre
ssions-for-japanese-text/
So, for example, the example Perl regexp [\x{3041}-\x{3096}]
would detect Hiragana characters (as would \p{Hiragana}). How
do I express such a Unicode range with Racket regexps?
I looked at the docs below and it wasn't obvious to me how to
do it. In other languages there might be, for example, a
\xnnnn or \uxxxx construct.
[2]http://docs.racket-lang.org/reference/regexp.html#%28elem._%
28rxex._30%29%29
--
Geoffrey S. Knauth | http://knauth.org/gsk
References
1. http://www.localizingjapan.com/blog/2012/01/20/regular-expressions-for-japanese-text/
2. http://docs.racket-lang.org/reference/regexp.html#%28elem._%28rxex._30%29%29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140916/76caf3c8/attachment.html>