I'm trying to use string.find's pattern matching capabilities to have string.find find any special characters (/, \, [, ], :, ;, %, @, !, etc.) and numbers.
I'm completely clueless on the pattern to find the special characters, I only know how to find the numbers.
The only way I've figured out doing this is by stating every single special character but I know there's an easier way.
My code:
[code]
string.find(self:GetValue(), "[%d]") -- %d is sorting out the numbers, but I need to know what to add to sort out special characters
[/code]
Any help would be appreciated.
Fixed, takes a special kinda dumb to overpass that.
..damnit.
Sorry, you need to Log In to post a reply to this thread.