python
Python - String ,remove,delete,replace,extract numbers from string
# remove numbers from string
s = '12abcd405'
result = ''.join([i for i in s if not i.isdigit()])
Output
'abcd'
Remove numbers from a string
Was this helpful?
Similar Posts
- Python - regex,replace all character exept A-Z a-z and numbers
- Extract integer values from a string in Python
- Python - regex , remove all single characters,replace all single chars,char
- [Python] Range - standard function to create a list of numbers
- Random numbers List with no repetition - generate in python
- Generate a list of n numbers in Python
- Python - regex , replace multiple spaces with one space