llRegexParse2List

From Second Life Wiki
Revision as of 11:48, 25 February 2012 by Sharie Criss (talk | contribs) (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…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Emblem-important-yellow.png 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 );