utf8.gmatch | Multi Theft Auto: Wiki Skip to content

utf8.gmatch

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns a pattern finding iterator for UTF-8 strings. The iterator will search through the string input looking for instances of the pattern you passed. For more information on iterators read the ForTutorial and IteratorsTutorial.

Syntax

utf8.gmatch ( )

Code Examples

server

This example prints every word in the UTF-8 string

for word in utf8.gmatch( "Как вас зовут?", "%a+" ) do
print( word )
end

See Also