This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
a
amazingwilf
Post
by amazingwilf » Fri Jun 13, 2003 5:28 am
Hi,
I'd like to run a script which gives voice to users where the first alpha character of their nick is uppercase. So, for example, John would get voice, as would ||John||, but john and |john|| wouldn't.
Any help with this much appreciated!
Thanks,
David
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Fri Jun 13, 2003 7:40 am
Code: Select all
if {[regexp {([A-Za-z])+} "$nick" ble] && [string is upper -strict [string index $ble 0]]}
^^ a cumbersome way of doing it, I'm sure there must be some faster/better way... but it works
Elen sila lúmenn' omentielvo
a
amazingwilf
Post
by amazingwilf » Fri Jun 13, 2003 8:57 am
Cumbersome or not, I'll give it a try. Thanks for the response