Jump to content

format String


Daniells Brandi
 Share

You are about to reply to a thread that has been inactive for 2053 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 2053 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...