Letters Only

Published by Matt in

Write a function that removes any non-letters from a string, returning a well-known film title.

Examples

LettersOnly("R!=:~0o0./c&}9k`60=y") ➞ "Rocky"

LettersOnly("^,]%4B|@56a![0{2m>b1&4i4") ➞ "Bambi"

LettersOnly("^U)6$22>8p).") ➞ "Up"

Notes

See the Resources section for more information on C# string methods.

Watch a quick demo on how Edabit works.