Advertisement
Corvust

String Length Determiner

Jun 11th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Variables]
  2. String=According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. The Rest of this string is not part of the original pasta, yadiya
  3.  
  4. [StringSubstitute]
  5. Measure=String
  6. String=#String#
  7. RegExpSubstitute=1
  8. DynamicVariables=1
  9.  
  10. ; Substitute 'All characters, including white spaces' with the number '9'
  11. Substitute="(.)":"9"
  12.  
  13. ; Substitute 'All characters, excluding white spaces' with the number '9'
  14. ; Substitute="(\S)":"9"," ":""
  15.  
  16. [NumberOfCharacters]
  17. Measure=Calc
  18. DynamicVariables=1
  19.  
  20. Formula=Log([StringSubstitute]+1)
  21.  
  22.  
  23.  
  24.  
  25. ; Currently maximum amount of characters is 308 characters; anymore the calc measure returns a inf error
  26.  
  27. ; This skin returns the number of characters in the string 'string'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement