> From: Alan K. Stebbens <[email protected]>
> 
> > Presumably you mean the alphabetic text between
> > an = and the next non-alphabetic character.
> > For this kind of thing functions other than ;: are
> > more straightforward.  Thus:
> >
> > alp=: a.{~,65 97+/i.26
> > f=: (('='={.&>) # }.&.>) @ (-.@(e.&alp) <;.1 ])
> 
> Can any of you honestly say that the above sentence is  
> "straightforward"? :^)

There is nothing extraordinary there: alp is immediately
recognized and alphabet 'ABC...abc...', and f easily
reads, even without executing to validate (so I might be wrong, 
but unlikely):

  Preserve (tails of) boxes, which start with '=', after
  chopping at non-alpha characters.


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

Reply via email to