Steve,

There are several other questions that need to be asked before you can
decide on a regular expression:

* Is there a possiblity of typos in the month names?

* Can the month names sometimes be in all uppercase?

* Can there be more than one space between month and day or comma and year?
Can there sometimes be no spaces?

* Will the comma always be there?

* Will it always be a four digit year?

* Will the day always be two digits?

* Does this date appear on a line with other text that may confuse simple
patterns?  For example, 

        (\S+)(\S+), (\S+) 

is sufficient for what you have shown us; but it would it would also
recognize any three words with a comma after the second word.  So the
question is how tight do you need ot make the pattern.

Merrill
-----Original Message-----
From: steve silvers [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 2:00 PM
To: [EMAIL PROTECTED]
Subject: Regular Expression, matching dates


I need a regular expression that will match dates in the following format.

January 01, 2001
January 15, 2001
February 01, 2001

so on. All dates are spelled out March, April, May.......

Any suggestions.
Thanks in advance.
Steve.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to