Jump to content

format String


Daniells Brandi
 Share

You are about to reply to a thread that has been inactive for 2605 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

 

default{    state_entry()    {        string Msg = "{\"dat\":[{\"length\":37,\"rid\":\"pro.ts\",\"text\":[\"I just want this part of the string\"]}]}";        llSay(0, Msg);                list temp = llParseString2List(Msg,["\""],[]);        llSay(0,"\n will be abstracted as \n");        string ShortMsg = llList2String(temp,11);        llSay(0,ShortMsg);    }}

Produces:

{"dat":[{"length":37,"rid":"pro.ts","text":["I just want this part of the string"]}]}

will be abstracted as

I just want this part of the string

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2605 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...