$text snippet by {{CrAdLe}}
Uses :
$text($1-).caps
$text($1-).lower
$text($1-).perupper
$text($1-).perlower
alias text {
if ($prop == caps) {
return $regex($1-,/[A-Z]/g)
}
if ($prop == lower) {
return $regex($1-,/[a-z]/g)
}
if ($prop == perupper) {
var %a = $regex($1-,/[A-Z]/g)
var %r = $remove($1-,$chr(32))
return $calc($calc(%a / $len(%r)) * 100)
}
if ($prop == perlower) {
var %a = $regex($1-,/[a-z]/g)
var %r = $remove($1-,$chr(32))
return $calc($calc(%a / $len(%r)) * 100)
}
}
Tokenmaster, here on hawkee reviewers don\'t always need to justify thier scores within the snippet section. Wheather this is a good ideam or not is debateable. But it has worked for the site in the past and as long as it works I wouldn\'t consider egging on people that give you \"low scores\". Remember your biggest critic is yourself