8 kyu
String cleaning
11,314 of 28,169mkelty
Description:
Your boss decided to save money by purchasing some cut-rate optical character recognition software for scanning in the text of old novels to your database. At first it seems to capture words okay, but you quickly notice that it throws in a lot of numbers at random places in the text.
Examples (input -> output)
'! !' -> '! !'
'123456789' -> ''
'This looks5 grea8t!' -> 'This looks great!'
Your harried co-workers are looking to you for a solution to take this garbled text and remove all of the numbers. Your program will take in a string and clean out all numeric characters, and return a string with spacing and special characters ~#$%^&!@*():;"'.,?
all intact.
Regular Expressions
Fundamentals
Strings
Similar Kata:
Stats:
Created | Sep 21, 2016 |
Published | Sep 21, 2016 |
Warriors Trained | 37854 |
Total Skips | 1703 |
Total Code Submissions | 60010 |
Total Times Completed | 28169 |
Python Completions | 11314 |
JavaScript Completions | 13547 |
Elixir Completions | 316 |
C# Completions | 1597 |
Ruby Completions | 792 |
C Completions | 413 |
COBOL Completions | 11 |
NASM Completions | 25 |
Julia Completions | 41 |
CoffeeScript Completions | 14 |
Scala Completions | 42 |
Java Completions | 661 |
Lua Completions | 23 |
Total Stars | 292 |
% of votes with a positive feedback rating | 93% of 2934 |
Total "Very Satisfied" Votes | 2551 |
Total "Somewhat Satisfied" Votes | 341 |
Total "Not Satisfied" Votes | 42 |
Total Rank Assessments | 9 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 8 kyu |
Lowest Assessed Rank | 8 kyu |