Skip to main content
Known Participant
October 22, 2013
Question

Parsing dates from string - regex

  • October 22, 2013
  • 0 replies
  • 311 views

I'm terible with regex and I can't seem to wrap my head around this simple task.

I need to parse out the two dates in a string which always has one of two formats:

"Inquiry at your property for December 29, 2013 - January 03, 2014"

OR

"Inquiry at your property for 29 December , 2013 - 03 January, 2014"

the 2 different date formats are throwing me off. Any insights would be appreciated!

This topic has been closed for replies.