I am guessing this should be asked in the forum as per the challenge edit section, but I cannot log in there using my GC account and cannot find where to create a user account. So I guess that is question 1. (The standard is to provide a create user option on the user login page).
I am trying to get the first alphanumeric character in a cache name, usually the first character, but not always. The code below looks like it should work, using one of the commented out lines, but none of them do the job. I suspect there is a better regex for the Gsub line, that would do the job too, but I could not work it out (I'm fairly new to this)
Any help would be appreciated, thanks.
for i,v in IPairs(myFinds) do
NoPunct = StringGsub(v['cache_name'],"[%p%s]","") --removes punctuation
--initial = StringMatch(NoPunct,"[a-z0-9]") --gets SECOND letter!!
--initial = StringSub(NoPunct,1,1) --produces no Print - not even previous printing!
--initial = PGC_UTF8_SubStr(NoPunct,1,1) --error msg
Print (initial,", ",NoPunct,", ", v['cache_name'], "\n")