Hi Xin,

If you know the length of the string that you want to search, the easiest way 
is to shorten it before you search.

'label' I.@E. 12&{. 'label1label2label3'  NB. searches first 12 characters of 
string
0 6

   id=: (I.@E. 12&{.)  NB. dyadic hook that will search the first 12 characters

   'label' id 'label1label2label3' 
0 6

Cheers, bob


On 2011-10-12, at 7:34 AM, Zheng, Xin (NIH) [C] wrote:

> 'label' I.@E. 'label1label2label3' 

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

Reply via email to