I want to search a given text for local URLs in link's href attributes, using regular expression. Currently, I have this regular expression:
'/href=["\']?([^"\'>]+)["\']?/'
Now, I'd like to add some more filtering: Only get those links, which start like this:
XXXX-XX-XX
Where X
is a number. This should match this: 2015-05-15/, 2015-05-15_03_21_32/ and also 2014-12-21 (any date set by me).