use "regex";
| Funkcja | Opis |
|---|---|
regexMatch(str, pattern) | Dopasuj → {value, index, groups} lub null |
matchAll(str, pattern) | Wszystkie dopasowania |
testRegex(str, pattern) | Czy pasuje? (true/false) |
replaceRegex(str, pattern, repl) | Zamień wszystkie |
replaceFirst(str, pattern, repl) | Zamień pierwsze |
splitRegex(str, pattern) | Podziel po wzorcu |
escapeRegex(str) | Escape znaków specjalnych |