05-20-2010, 08:38 PM
Might just be that your string contains more information than the date.
"Today is Thursday, May 20, 2010" would fail because of the "^" (caret) at the start of the regexp string. Remove the "^" (which means starts with) and try again.
You might try replacing the "^" with "[\w\s]+". That way the string can start with any word or whitespace character.
"Today is Thursday, May 20, 2010" would fail because of the "^" (caret) at the start of the regexp string. Remove the "^" (which means starts with) and try again.
You might try replacing the "^" with "[\w\s]+". That way the string can start with any word or whitespace character.