LlRegexParse2List: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Created page with "{{LSL_Function |func_id |mode=request |func_sleep=0.0 |func_energy=10.0 |func=llRegexParse2List |sort= |p1_type=string|p1_name=source|p1_desc |p2_type=string|p2_name=regex|p2_des…"
(No difference)

Revision as of 12:48, 25 February 2012

LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: list llRegexParse2List( string source, string regex );
0.0 Forced Delay
10.0 Energy

Provides the ability to use complex Perl Compatible regular expressions to extract content from a string
Returns a list with the parsed contents of the string as elements in a list, empty list if no matches.

• string source
• string regex

Examples

<lsl>list mylist = llRegexParse2List("this is a test","(\w+)\W+(\w+)"); </lsl>

mylist would contain ["this","is"]

Deep Notes

Signature

//function list llRegexParse2List( string source, string regex );