ll.FindNotecardTextSync (NotecardName: string, Pattern: string, StartMatch: number, Count: number, Options: list) -> listSearches the text of a cached notecard for lines containing the given pattern. Returns a list of line numbers and column where a match is found. If the notecard is not in the cache it returns a list containing a single entry of NAK. If no matches are found an empty list is returned.
ll.FindNotecardTextSync(
'test',
'test',
3.14,
3.14,
{}
)
{
"def": "func",
"desc": "Searches the text of a cached notecard for lines containing the given pattern. \n Returns a list of line numbers and column where a match is found. If the notecard is not in\n the cache it returns a list containing a single entry of NAK. If no matches are found an\n empty list is returned.",
"energy": 10,
"sleep": 0,
"must_use": false,
"link": "https://wiki.secondlife.com/wiki/LlFindNotecardTextSync",
"private": false,
"takesSelf": false,
"name": "FindNotecardTextSync",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "list"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "NotecardName",
"desc": "",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Pattern",
"desc": "Regex pattern to find in the notecard text.",
"type": [
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "StartMatch",
"desc": "The number of matches to skip before returning values.",
"type": [
{
"def": "simple",
"value": "number"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Count",
"desc": "The maximum number of matches to return. If 0 this function will return the first 64 matches found.",
"type": [
{
"def": "simple",
"value": "number"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Options",
"desc": "A list of options to control the search. Included for future expansion, should be []",
"type": [
{
"def": "simple",
"value": "list"
}
],
"variadic": false,
"optional": false
}
]
}
]
}