This works against a list of hyperlinks from the 'USS Marmora (1862)' article
You can include File: pages by removing the File:| from the regex.
I could improve how the remaining query for urls containing index.php, for now I recommend splitting in your chosen programming language.
According to guidelines at https://en.wikipedia.org/wiki/Help:URL