fork download
  1. local string = "abcd LastMatch РОДИНА"
  2.  
  3. for match in string:gmatch("%f[%a]%a+%f[%A]") do
  4. print(match)
  5. end
  6.  
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
abcd
LastMatch