Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Right now I am using a real parser working character by character, but it is really slow... The problem comes from this line, I think:
Any ideas on how to speed this/avoid backtracking?my $sjis = q{ [\x00-\x7F] |[\x81-\x9F\xE0-\xFC][\x40-\x7E\x80-\xFC] |[\xA0-\xDF] }; @chars = $text =~ /$sjis/gox;
Thanks
Originally posted as a Categorized Question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I parse CSV data, assuming that the string is encoded in Shift-JIS?
by AgentM (Curate) on Oct 18, 2000 at 05:06 UTC |