> how would you split "terrence234brannon" by the regular expression \d+ for 
> instance?


           load 'regex'
        
           rxsplit =:  _2 {.\ ] rxcut~ (,0) {"2 rxmatches
        
           '(\d+)' rxsplit 'terrence234brannon'   NB.  Parens required in x
        +--------+-------+
        |terrence|brannon|
        +--------+-------+
           
Regarding the rest of your message detailing the shortcomings of bare  ;.  wrt 
to splitting a string:  use the dyad  cut  from the library  'strings'.

Also, J is not Python, don't expect that it'll act as if it is.  If you want to 
use J, you'll to both learn and unlearn.

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to