I have a string list like this :nm : (“Peter,3”; “Tom,5m2”; “Alifafa”; “Maryka,”) //comma at differentpositionI want to cut off the chars after comma “,” , which will output as(“Peter”;“Tom”;“Alifafa”;“Maryka”) . I had tried "ssr[nm; “,*”; “”] "or "ssr[nm; “,?”; “”] ", but not work .Help pls . Thanks,Halley
{(x?“,”)#x}'nm
@[;1] each vs[“,”;] each nm
should be : @[;0] each vs[“,”;] each nm ; thanks,On 3??31??, ???2?40??, “CHEN, Cheng” <chench…> wrote:> @[;1] each vs[“,”;] each nm>> On 31 March 2012 04:01, CL Jason <cl.ja…> wrote:>> > {(x?“,”)#x}'nm>> > –> >
Submitted via Google Groups</cl.ja…></chench…>
How about this solution?
{x til first where[x=“,”],count x} each nm
Am 31.03.2012 09:27, schrieb bigbug:
> should be : @[;0] each vs[“,”;] each nm ; thanks,
>
> On 3??31??, ???2?40??, “CHEN, Cheng” <chench…> wrote:
>> @[;1] each vs[“,”;] each nm
>>
>> On 31 March 2012 04:01, CL Jason <cl.ja…> wrote:
>>
>>> {(x?“,”)#x}'nm
>>> –
>>>
Submitted via Google Groups</cl.ja…></chench…>
yah, u r right, should read your question more carefully
2012/3/31 bigbug <matlab747@gmail.com>
should be : @[;0] each vs[“,”;] each nm ; thanks,