QRegEx help, RegEx in general

view full story

http://stackoverflow.com – I'm in the process of attempting to learn RegEx. I've been tasked with generating a QPixmap out of several hundred *.png files. Ideally, it would be a PixMap matrix. I think that QRegEx is the best way to perform this action so I can insert the pixmaps into a matrix without having to sort. My pattern I'm trying to match: runner_(int)_(int).png Where the first integer has bounds [-1, 13] and the second [0, 20]. This is my code attempt: // find the png files in the thing QDir fileDir(iconPath); QFileInfoList fileList = fileDir.entryInfoList(); QRegExp rxlen("run (HowTos)