Finding a number in a string lua
snippet in lua

Finding a number in a string lua

user3848

number = string.match(
    "Need Roll - 150 for [SomeItem] by [SomePerson] + role bonus",
    "%d+"
)