llFindNotecardTextSync
function ll.FindNotecardTextSync(NotecardName: string, Pattern: string, StartMatch: number, Count: number, Options: {any}): {any}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.
Parameters
NotecardName(string)Pattern(string)- Regex pattern to find in the notecard text.
StartMatch(number)- The number of matches to skip before returning values.
Count(number)- The maximum number of matches to return. If 0 this function will return the first 64 matches found.
Options({any})- A list of options to control the search. Included for future expansion, should be []
Examples
Section titled “Examples”Add example usage here showing SLua/Luau syntax with ll.FindNotecardTextSync().
Add additional notes, caveats, or tips specific to using this function in SLua/Luau.
See Also
Section titled “See Also”- Related functions can be linked here
- LSL equivalent: llFindNotecardTextSync