If you have a sentence in a log file like "2 of 4 pictures converted successfully" and you need to know the numbers you can use this regex and use the group variable.