CraftMuch
New member
- Joined
- Jul 30, 2014
- Messages
- 2
- Programming Experience
- 3-5
Say I have a string format "people(<no.people>)" and I want to compare another string "people(5)". If the string fits the format it will return true, otherwise it will return false.
"people(5)" will return true
"people(5243)" will return true
"people(5)5" will return false
"people" will return false...
I am aware of how to get content within the brackets, just not how to verify the rest of the string.
Thanks
"people(5)" will return true
"people(5243)" will return true
"people(5)5" will return false
"people" will return false...
I am aware of how to get content within the brackets, just not how to verify the rest of the string.
Thanks