0

Is there any function that deletes letters and special characters (%#&@/*) from a file

For example I have this in the first file (2*3 43# 76) And I want to have (23 43 76) that in the second file https://code.sololearn.com/cg5IEOTl8E6g/?ref=app

2nd Jun 2021, 11:50 AM
zaya1235
zaya1235 - avatar
2 ответов
+ 5
zaya1235 , what you can do is to iterate on the input string, and take all characters that are digits and spaces and put them to a new string. all other characters should be ignored. happy coding and good success!
2nd Jun 2021, 2:16 PM
Lothar
Lothar - avatar