llRegexParse2List

From Second Life Wiki
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 );