Funzione
Nativa
string.find
Looks for the first match of <code>pattern</code> in the string.
Non ancora tradotto
Sintassi
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