Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso Nativa

string.find

Looks for the first match of <code>pattern</code> in the string.

Non ancora tradotto

Sintassi

Lua
string.find(haystack, needle, startPos, noPatterns)

Parametri

Nome Tipo Predefinito Descrizione
haystack string The string to search in.
needle string The string to find, can contain patterns if enabled.
startPos number The position to start the search from, can be negative start position will be relative to the end position.
noPatterns boolean Disable patterns.

Valore restituito

  • number
  • number
  • string