Home > other >  Lua string. The find
Lua string. The find

Time:09-25

The local function stringFind (pair)
Print (" SRT==".. Pair)
The local a, b, c, d, f=string. The find (pair, "a + (%) ([# ']) a + (%)")
Print (" a==".. A)
Print (" b==".. B)
Print (" c==".. C)
Print (d=="".. D)
Print (" f==".. F)
End
The local STR="aaaaaa# fassdfas"
StringFind (STR)

CodePudding user response:

The first and the second parameter is a numerical, third, fourth, fifth, these are not fixed, it is a return value of the number of brackets, according to you I get above are three brackets!
  • Related