Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to check if a string has any numbers in it?

Asked by
ax_gold 360 Moderation Voter
6 years ago

I'm making chat commands, and I want to be able to find any sort of number in a command. I know you can use string.find to find a specific number, but I'm trying to find any number. I also know you can use string.sub, but that won't work well with a command that can vary in length. Does anyone know a for sure way to get a number in a string value, and only the number?

1 answer

Log in to vote
0
Answered by 6 years ago

Here is a helpful link on parsing text:

http://wiki.roblox.com/index.php?title=Parsing_text

Hope it helps!

Ad

Answer this question