in reply to The simplest (perl) filter for the job

Try to use a regular expression to capture all occurances of *.app into an anonymous list, an then retrieve the last occurance of *.app in the list:
+(/(\w+.app)/g)[-1]