Retired

Get number from string (retired)

5,113 of 12,734wichu

Description:

Write a function which removes from string all non-digit characters and parse the remaining to number. E.g: "hell5o wor6ld" -> 56

Function:

getNumberFromString(s)
get_number_from_string(s)
GetNumberFromString(string s)
Strings
Regular Expressions
Fundamentals

Stats:

CreatedAug 4, 2016
Warriors Trained17096
Total Skips530
Total Code Submissions42469
Total Times Completed12734
Haskell Completions304
Python Completions5113
F# Completions176
JavaScript Completions5444
C Completions767
Ruby Completions512
C# Completions773
Total Stars147
% of votes with a positive feedback rating93% of 1924
Total "Very Satisfied" Votes1679
Total "Somewhat Satisfied" Votes211
Total "Not Satisfied" Votes34
Ad
Contributors
  • wichu Avatar
  • kevinthomas Avatar
  • suic Avatar
  • lilsweetcaligula Avatar
  • Voile Avatar
  • farhanaditya Avatar
  • saudiGuy Avatar
Ad