Python: Extract numbers from a string

#Python: Extract numbers from a string
import re;
string = "rootNode218|parentNode001|polygonModel.vtx[627]";
list = re.findall(r'\d+', string); # ['218', '001', '627'];

Comments

Popular posts from this blog

HIK: Getting current character and current source.