llLinksetDataCountFound
function
Function syntax
integer llLinksetDataCountFound(string pattern// A regular expression (regex) search string used to match keys.
);- Returns
integer- Energy
- 10
The llLinksetDataCountFound function returns the number of keys in the linkset datastore that match the pattern supplied in the pattern.
Returns an integer Count of the keys in the datastore that match the supplied pattern.
integer result = llLinksetDataCountFound("");Specification
Section titled “Specification”pattern is a Regular expression.
Examples
Section titled “Examples”The following regular expression code can be used to count UUID keys. (Such as those use to identify user UUID)
integer numKeysFound = llLinksetDataCountFound("(?i)^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$", 0, 0);The following code can also be used to count UUID keys in LinksetData memory.
integer numKeysFound = llLinksetDataCountFound("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", 0, 0);Regular Expression Cheat Sheet
Section titled “Regular Expression Cheat Sheet”See also
Section titled “See also”Functions
Section titled “Functions”llLinksetDataAvailablellLinksetDataCountKeysllLinksetDataDeletellLinksetDataDeleteFoundllLinksetDataFindKeysllLinksetDataListKeysllLinksetDataReadllLinksetDataResetllLinksetDataWrite
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.