May be due to a high-bit character:
   '[a-z]{4}+' rxmatch text-.a.{~166
0 4

On Tue, Apr 27, 2010 at 3:05 PM, Devon McCormick <[email protected]> wrote:

> Looks buggy to me:
>
>    '[a-z]{4}+' rxmatch 2322{.text
> _1 0
>    '[a-z]{4}+' rxmatch 2321{.text
> 1 4
>
>
>
> On Tue, Apr 27, 2010 at 1:36 PM, Raul Miller <[email protected]>wrote:
>
>> Is this a known bug?  If so, does anyone have a workaround?
>>
>>   require'regex'
>>   wordre=: rxcomp '[\w'']+'
>>   text=: fread 'help/primer/cut.htm'
>>   $text
>> 5971
>>   $wordre rxmatches text
>> 0 1 2
>>
>> (For this result to be correct, the file would have
>> to contain no letters, but a casual inspection
>> shows that it has some.)
>>
>> Thanks,
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
>
>


-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to