I want to extract the last occurence of a date from my source file. I use this expression to select a date:
\d{1,2}(-|\/)\d{1,2}(-|\/)\d{2,4}
How can I change it so that it only selects the last date that is encountered in the source file?
So for example, if this is the source:
19-04-2010 random text
random text
random text 19/5/1999
25/12/1991 random text
I want the regex expression to return only:
25/12/1991
Can anyone help me out?