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'];
import re;
string = "rootNode218|parentNode001|polygonModel.vtx[627]";
list = re.findall(r'\d+', string); # ['218', '001', '627'];
Comments
Post a Comment