Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Parsing dates from string - regex

New Here ,
Oct 22, 2013 Oct 22, 2013

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!

TOPICS
Getting started
295
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources