Solved! Go to Solution.
Now, I just want to remove the Alpha Characters only(which can be at any place) and nothing else.
>>> ''.join([i for i in "62/A" if i.isdigit()]) '62' >>> ''.join([i for i in "62/A" if not i.isalpha()]) '62/'
Can anyone help me with the code (Python or SQL).
import re re.sub(r'\W', '', "A/62")