ll.FindNotecardTextSync(NotecardName: string, Pattern: string, StartMatch: number, Count: number, Options: list) : list
Searches 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',
4,
1,
{}
)
{
"def": "func",
"desc": "Searches 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.",
"energy": 10,
"sleep": 0,
"pure": false,
"link": "https://wiki.secondlife.com/wiki/LlFindNotecardTextSync",
"name": "FindNotecardTextSync",
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"list"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "NotecardName",
"desc": "",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Pattern",
"desc": "Regex pattern to find in the notecard text.",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "StartMatch",
"desc": "The number of matches to skip before returning values.",
"type": [
"integer",
"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": [
"integer",
"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": [
"list"
],
"variadic": false,
"optional": false
}
]
}
]
}