Skip to content

llLinksetDataCountFound

integer llLinksetDataCountFound(string search)

Returns the number of keys matching the regular expression passed in the search parameter.

Parameters
search (string)
A regex search string to match against keys in the datastore.

Count UUID keys using a case-insensitive pattern:

integer numKeysFound = llLinksetDataCountFound("(?i)^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$", 0, 0);

Count UUID keys using a case-sensitive pattern:

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);

The pattern parameter is a regular expression. For more information about regex patterns and special syntax in LSL, see the regular expressions documentation.