From: matz@... (Yukihiro Matsumoto) Date: 2001-08-22T00:34:19+09:00 Subject: [ruby-talk:20059] Re: Regexp for japanese characters Hi, In message "[ruby-talk:20056] Regexp for japanese characters" on 01/08/21, Slava Kravchenko writes: |Is there a special symbol in the regexp to substitute |kanji/katakana/hiragana (japanese characters)? (Like, say, "\k" or |something ;) Considering its origin, pretty suprisingly, the answer is no. You can emulate it by character class though. /[a-zA-Z]/ with replacing a with "Hiragana a" z with "Hiragana n", etc. Oh, I wish I can write Japanese characters directly here. |If no, could anyone help me with a short example to create one by *ahem* |overriding the Regexp class? (Yes, I'm pretty sure I want it in the |regexp :) If you really want something like \k, and not satisfied with the emulation above, hack the code. matz.