in reply to Weird Perl 5.8.8 Regex Problems for Japanese UTF8

Uhm, none of the regexes you show contain anything Japanese. And only the second one has any chance of matching anything that contains Japanese. (Well, technically, the fourth one may as well: the array @x may contain Japanse text, and '.' may match a single Japanese character. But you probably meant /\@x\.com$/ there.)

Replies are listed 'Best First'.
Re^2: Weird Perl 5.8.8 Regex Problems for Japanese UTF8
by ruski86 (Initiate) on Sep 08, 2010 at 14:04 UTC
    Sorry, I mean that I'm using those regexs to match against a lot of different documents. Many of those documents happen to contain different languages. None of the characters in any of those languages cause any problems except the Japanese ones, which slow down the matching to a crawl (and it seems to only be about 10% of Japanese strings I've tried to match against that cause the problem). Does that clarify things?