openmedi
Jan 08, 2016 - 12:06
I'm looking for a way to count characters in my documents that excludes spaces. I checked the workflow directory, but couldn't find anything. Thanks in adavance for any help with this!
I'm looking for a way to count characters in my documents that excludes spaces. I checked the workflow directory, but couldn't find anything. Thanks in adavance for any help with this!
def char_count(s):
return len([c for c in s if not c.isspace()])
This should work:
http://www.editorial-workflows.com/workflow/5830267646246912/eTbaVMP7e2g
Thanks for your help. I even did my own workflow (adaption): http://www.editorial-workflows.com/workflow/5859928086413312/X8gWpLDkBHs