I want to split a string using rxE (which in turn calls rxmatches), but
it's not behaving as I expect when I use '^'. I want to split on the
beginning, and two words, e.g:
'FOO|BAR|^' rxE 'blah blah FOO blah BAR'
1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 0 0
'^|FOO|BAR' rxE 'blah blah FOO blah BAR'
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
But what I want is
1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0
I think this has to with rxmatches iteratively beheading the string,
and '^' matches successive substrings. This was previously a problem
with rxrplc as well but was recently fixed. Is this also a bug with rxE?
Thanks,
Ryan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm