In the Lab on regex's I see the following quotation which suggests
that what you call "index" is called "items". Maybe that is the reason
it must be rank 1.

Lab Section
By using a pattern;items boxed list as an argument, the specific
subexpressions of interest can be isolated.  In the following, only
the letter and digit subexpressions are returned.
)
[str=: ' nodigits abc123 007  qwerty99942 '

(abc123;1 2) rxmatches str


On Sat, Feb 12, 2011 at 8:30 AM, Raul Miller <[email protected]> wrote:
> 'require'regex'
>   (1;&,~'\w+\s*(.*)') |. rxapply 'this is a test'
> this tset a si
>   (1;~'\w+\s*(.*)') |. rxapply 'this is a test'
> |domain error: rxapply_jregex_
>
> Why does rxapply require the index in x be rank 1?
>
> --
> Raul



-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to