📦 Transform a camelized/dasherized/underscored/etc string into a readable string

samandar

Samandar Ravshanov

Posted on August 1, 2019

📦 Transform a camelized/dasherized/underscored/etc string into a readable string
from functorflow import f

print(f('clean-string', 'fooBar'))
# 'Foo bar'

print(f('clean-string', 'lorem-ipsum'))
# 'Lorem ipsum'


print(f('clean-string', 'BigBang_theory'))
# 'Big bang theory'
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
samandar
Samandar Ravshanov

Posted on August 1, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related