Skip to content
Prev 205166 / 398506 Next

Regexp: extract first occurrence of date in string

Try this which uses a slightly simpler regexp:
[1] "05.12.2009"

or we could convert it to Date class at the same time where we have
assumed month.day.year:
[1] "2009-05-12"

or this even simpler regexp extracting all the dates and then picking
off the first:
[1] "05.12.2009"
On Sat, Jan 2, 2010 at 10:08 AM, johannes rara <johannesraja at gmail.com> wrote: