4
Let’s say, I have:
a = "0LÁM@UN@D0
I would like something to remove all letters (A-Z) and other characters, I just want to get the numbers, in the example, would be only 0 and 0
b = "A1B2C3"
Something that takes letters from alphabets and characters, that deletes anything other than numbers (integers) in one string.
I’m using Python 2.7
Congratulations on your answer. It is common to see here people who try to help, but put answers that exclude your part of the "explanation": they only say "you can use this regex: ..." ...and this does not help much.
– jsbueno
@jsbueno Thanks! I know well how it is because I’ve taken this kind of answer a few times hehe.
– Marcelo Junior
Marcelo thanks! Please, if possible answer me something. Is if I want to remove only all the special characters?
– Luan pedro
Thank you Marcelo! : D helped A lot!
– Luan pedro