Difference between revisions of "LlRegexParse2List"

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…")
 
(Added references to actually implemented functions since this page comes up in search results for "regex")
 
Line 11: Line 11:
|return_text=with the parsed contents of the string as elements in a list, empty list if no matches.
|return_text=with the parsed contents of the string as elements in a list, empty list if no matches.
|func_desc=Provides the ability to use complex Perl Compatible regular expressions to extract content from a string
|func_desc=Provides the ability to use complex Perl Compatible regular expressions to extract content from a string
|examples=<lsl>list mylist = llRegexParse2List("this is a test","(\w+)\W+(\w+)");
|examples=
</lsl>
|also_functions=
mylist would contain ["this","is"]
{{LSL DefineRow||[[llLinksetDataFindKeys]]|}}
{{LSL DefineRow||[[llFindNotecardTextSync]]|}}
}}
}}

Latest revision as of 09:58, 12 January 2025

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

See Also

Deep Notes

Signature

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