fork download
  1. s = [[<stats>+200 Stock Price<br>+150% Stock Price Increase <br><stock>+110% Stock Size</stock><br>+10% Company Revenue]]
  2. print(string.match(s, [[(%d+%%)%s+Stock Price Increase]]) .. " - Stock Price Increase")
  3. print(string.match(s, [[(%d+%%)%s+Stock Size]]) .. " - Stock Size")
  4. print(string.match(s, [[(%d+%%)%s+Company Revenue]]) .. " - Company Revenue")
  5. print(string.match(s, [[(%d+)%s+Stock Price]]) .. " - Stock Price")
Success #stdin #stdout 0s 15008KB
stdin
Standard input is empty
stdout
150% - Stock Price Increase
110% - Stock Size
10% - Company Revenue
200 - Stock Price