string.gmatch
code:Lua
f = textmodule.string.gmatch(str, pattern)
モジュール
string
引数
table:_
変数 型 概要
1 str string 元の文字列
2 pattern string 検索文字列(
正規表現
)
返り値
table:_
変数 型 概要
1 f function イテレータ関数
概要
str
から正規表現パターン
pattern
に当てはまる部分を次々と返すような、イテレータ関数
f
を返す。