I'm fairly sure there wont be much of a difference in terms of performance between the two.
That said, I would probably use the RIGHT() function because it is a little clearer what exactly you are trying to do.
If you were worried about performance though, I would add a column with that value and keep it up to date when the file changes. Much faster to get the number once when the row is generated/updated and then not have to be doing SUBSTRING functions in the query.